Puts a connection into the pool. The connection could be new or returned back.
(&self, connection: Connection)
| 78 | /// |
| 79 | /// The connection could be new or returned back. |
| 80 | fn put(&self, connection: Connection) { |
| 81 | let mut connections = self.connections.lock(); |
| 82 | connections.push(connection); |
| 83 | drop(connections); |
| 84 | } |
| 85 | |
| 86 | /// Retrieves a connection from the pool. |
| 87 | /// |
no outgoing calls