error[E0599]: no method named `with_interval` found for struct `TcpKeepalive` in the current scope
--> /home/onlycs/.cargo/git/checkouts/rust-postgres-a0ce567e7550f063/00d4815/tokio-postgres/src/keepalive.rs:17:43
|
17 | tcp_keepalive = tcp_keepalive.with_interval(interval);
| ^^^^^^^^^^^^^ method not found in `TcpKeepalive`
error[E0599]: no method named `with_retries` found for struct `TcpKeepalive` in the current scope
--> /home/onlycs/.cargo/git/checkouts/rust-postgres-a0ce567e7550f063/00d4815/tokio-postgres/src/keepalive.rs:22:43
|
22 | tcp_keepalive = tcp_keepalive.with_retries(retries);
| ^^^^^^^^^^^^ help: there is a method with a similar name: `with_time`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `tokio-postgres` (lib) due to 2 previous errors
Fixed when I went into the checkout folder and added the all feature to socket2 in the Cargo.toml
Built on latest nightly
Fixed when I went into the checkout folder and added the
all
feature tosocket2
in theCargo.toml
Built on latest nightly