mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
fixed merge
This commit is contained in:
parent
fe596672ea
commit
c3a586a73d
@ -549,7 +549,7 @@ impl TransClient {
|
|||||||
/// # Panics
|
/// # Panics
|
||||||
/// Either metainfo or torrent filename must be set or this call will panic.
|
/// Either metainfo or torrent filename must be set or this call will panic.
|
||||||
///
|
///
|
||||||
pub async fn torrent_add(&mut self, add: TorrentAddArgs) -> Result<RpcResponse<TorrentAdded>> {
|
pub async fn torrent_add(&mut self, add: TorrentAddArgs) -> Result<RpcResponse<TorrentAddedOrDuplicate>> {
|
||||||
assert!(
|
assert!(
|
||||||
!(add.metainfo == None && add.filename == None),
|
!(add.metainfo == None && add.filename == None),
|
||||||
"Metainfo or Filename should be provided"
|
"Metainfo or Filename should be provided"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user