Skip to content

Commit

Permalink
Drop unnecessary call to .acquire()
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Oct 17, 2024
1 parent ce8d83f commit 3752cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-postgres/src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ impl<'c> Acquire<'c> for &'c mut PgListener {
type Connection = &'c mut PgConnection;

fn acquire(self) -> BoxFuture<'c, Result<Self::Connection, Error>> {
self.connection().and_then(|c| c.acquire()).boxed()
self.connection().boxed()
}

fn begin(self) -> BoxFuture<'c, Result<Transaction<'c, Self::Database>, Error>> {
Expand Down

0 comments on commit 3752cbc

Please sign in to comment.