Skip to content

Commit 1054eea

Browse files
committedAug 11, 2021
Rename make_pool to make_pooled_conn
1 parent 56099fe commit 1054eea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎bb8/src/inner.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ where
101101

102102
pub(crate) async fn make_pooled<'a, 'b, F>(
103103
&'a self,
104-
make_pool: F,
104+
make_pooled_conn: F,
105105
) -> Result<PooledConnection<'b, M>, RunError<M::Error>>
106106
where
107107
F: Fn(&'a Self, Conn<M::Connection>) -> PooledConnection<'b, M>,
@@ -112,7 +112,7 @@ where
112112
match locked.pop(&self.inner.statics) {
113113
Some((conn, approvals)) => {
114114
self.spawn_replenishing_approvals(approvals);
115-
make_pool(self, conn)
115+
make_pooled_conn(self, conn)
116116
}
117117
None => break,
118118
}
@@ -140,7 +140,7 @@ where
140140
};
141141

142142
match timeout(self.inner.statics.connection_timeout, rx).await {
143-
Ok(Ok(mut guard)) => Ok(make_pool(self, guard.extract())),
143+
Ok(Ok(mut guard)) => Ok(make_pooled_conn(self, guard.extract())),
144144
_ => Err(RunError::TimedOut),
145145
}
146146
}

0 commit comments

Comments
 (0)
Please sign in to comment.