Skip to content

Commit

Permalink
Spawn the return_to_pool command
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyMatt committed Jun 17, 2024
1 parent 7acd150 commit 033226b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/asynchronous.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl BorrowedAsyncConnection {
res => res,
};

self.return_to_pool().await;
tokio::spawn(async { self.return_to_pool().await });
res
}

Expand Down

0 comments on commit 033226b

Please sign in to comment.