Replies: 1 comment 10 replies
-
registry的问题,不要用代理 |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
升级之前运行正常, 升级后报错, 麻烦看看哪里的原因?
`
steven@steven:~/data/rust/orm_test$ cargo run -p axum_test
Compiling rbdc-pool-fast v4.5.6
error[E0407]: method
set_timeout
is not a member of traitPool
--> /home/steven/data/rust/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/rbdc-pool-fast-4.5.6/src/lib.rs:83:5
|
83 | async fn set_timeout(&self, timeout: Option) {
| ^ ----------- help: there is an associated function with a similar name:
get_timeout
| |
| |
84 | | self.timeout.store(timeout);
85 | | }
| |^ not a member of trait
Pool
error[E0308]: mismatched types
--> /home/steven/data/rust/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/rbdc-pool-fast-4.5.6/src/lib.rs:120:34
|
120 | let r = self.inner.check(conn).await;
| ----- ^^^^ expected
ConnectionBox
, found&mut ConnectionBox
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/steven/data/rust/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/rbdc-4.5.11/src/pool/conn_manager.rs:58:18
|
58 | pub async fn check(&self, mut conn: ConnectionBox) -> Result<ConnectionBox, Error> {
| ^^^^^
Some errors have detailed explanations: E0308, E0407.
For more information about an error, try
rustc --explain E0308
.error: could not compile
rbdc-pool-fast
(lib) due to 2 previous errors`
Beta Was this translation helpful? Give feedback.
All reactions