Skip to content

Commit 981133b

Browse files
committed
fix: dont take owned self in Client.stop
1 parent 78c9be6 commit 981133b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Client {
126126
/// # Errors
127127
///
128128
/// Will return `Err` if the connection actor has already been shut down.
129-
pub async fn stop(self, subscription_id: SubscriptionId) -> Result<(), Error> {
129+
pub async fn stop(&self, subscription_id: SubscriptionId) -> Result<(), Error> {
130130
self.actor
131131
.send(ConnectionCommand::Cancel(subscription_id))
132132
.await

0 commit comments

Comments
 (0)