|
1 | 1 | use crate::connection::{ConnectOptions, Connection};
|
2 | 2 | use crate::database::Database;
|
3 |
| -use crate::pool::connection::{Floating, Live}; |
| 3 | +use crate::pool::connection::Floating; |
4 | 4 | use crate::pool::inner::PoolInner;
|
5 | 5 | use crate::pool::PoolConnection;
|
6 | 6 | use crate::rt::JoinHandle;
|
7 | 7 | use crate::Error;
|
8 | 8 | use ease_off::EaseOff;
|
9 |
| -use event_listener::{Event, EventListener}; |
| 9 | +use event_listener::Event; |
10 | 10 | use std::fmt::{Display, Formatter};
|
11 | 11 | use std::future::Future;
|
12 |
| -use std::pin::Pin; |
13 | 12 | use std::ptr;
|
14 | 13 | use std::sync::atomic::{AtomicUsize, Ordering};
|
15 |
| -use std::sync::{Arc, RwLock}; |
16 |
| -use std::task::{Context, Poll}; |
17 |
| -use std::time::{Duration, Instant}; |
18 |
| -use tracing::Instrument; |
| 14 | +use std::sync::Arc; |
| 15 | +use std::time::Instant; |
19 | 16 |
|
20 | 17 | use std::io;
|
21 | 18 |
|
@@ -74,7 +71,7 @@ use std::io;
|
74 | 71 | /// `set_connect_options` and `get_connect_options` were removed in 0.9.0 because they complicated
|
75 | 72 | /// the pool internals. They can be reimplemented by capturing a mutex, or similar, in the callback.
|
76 | 73 | ///
|
77 |
| -/// This example uses Postgres and [`tokio::sync::Mutex`] but may be adapted to any driver |
| 74 | +/// This example uses Postgres and [`tokio::sync::RwLock`] but may be adapted to any driver |
78 | 75 | /// or `async-std`, respectively.
|
79 | 76 | ///
|
80 | 77 | /// ```rust,no_run
|
|
0 commit comments