From ccce01d4ff8b5107c2e9ccd43a57ebcf29757bb9 Mon Sep 17 00:00:00 2001 From: tatref Date: Tue, 12 Aug 2025 20:27:11 +0200 Subject: [PATCH] qb v5: rename pause/stop, resume/start --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ff1a0f6..c5e15a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -451,14 +451,14 @@ impl Qbit { .map_err(Into::into) } - pub async fn pause_torrents(&self, hashes: impl Into + Send + Sync) -> Result<()> { - self.post("torrents/pause", Some(&HashesArg::new(hashes))) + pub async fn stop_torrents(&self, hashes: impl Into + Send + Sync) -> Result<()> { + self.post("torrents/stop", Some(&HashesArg::new(hashes))) .await? .end() } - pub async fn resume_torrents(&self, hashes: impl Into + Send + Sync) -> Result<()> { - self.post("torrents/resume", Some(&HashesArg::new(hashes))) + pub async fn start_torrents(&self, hashes: impl Into + Send + Sync) -> Result<()> { + self.post("torrents/start", Some(&HashesArg::new(hashes))) .await? .end() }