fixed merge

This commit is contained in:
Aleksandr Bochev 2022-10-02 10:02:57 +02:00 committed by Aleksandr
parent fe596672ea
commit c3a586a73d

View File

@ -549,7 +549,7 @@ impl TransClient {
/// # Panics
/// 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!(
!(add.metainfo == None && add.filename == None),
"Metainfo or Filename should be provided"