Skip to content

Commit b83c74a

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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

src/client/subscription.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<Operation> Subscription<Operation>
4141
where
4242
Operation: GraphqlOperation + Send,
4343
{
44-
/// Returns the identifier for this subscription.
44+
/// Returns the identifier for this subscription.
4545
///
4646
/// This can be used with [`crate::Client::stop`] to stop
4747
/// a running subscription without needing access to the `Subscription`

0 commit comments

Comments
 (0)