Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no method named send_replace found for struct Arc<Sender<Option<Connected>>> #3195

Closed
jauderho opened this issue Apr 6, 2023 · 2 comments · Fixed by #3345
Closed

no method named send_replace found for struct Arc<Sender<Option<Connected>>> #3195

jauderho opened this issue Apr 6, 2023 · 2 comments · Fixed by #3345
Labels
C-bug Category: bug. Something is wrong. This is bad!

Comments

@jauderho
Copy link

jauderho commented Apr 6, 2023

Version
hyper v0.14.25

Platform
Linux 6.2.0-19-generic #19-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 25 10:22:33 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Description
While trying to build rustybgp using the following command:

RUSTFLAGS="-C link-arg=-fuse-ld=mold" cargo build --release

Build stopped with the error message:

   Compiling hyper v0.14.25
error[E0599]: no method named `send_replace` found for struct `Arc<Sender<Option<Connected>>>` in the current scope
   --> /home/jauderho/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.25/src/client/connect/mod.rs:225:17
    |
225 |         self.tx.send_replace(Some(connected.clone()));
    |                 ^^^^^^^^^^^^ method not found in `Arc<Sender<Option<Connected>>>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper` due to previous error

Looks like it came from this commit: https://github.com/hyperium/hyper/pull/3144/files

@jauderho jauderho added the C-bug Category: bug. Something is wrong. This is bad! label Apr 6, 2023
@seanmonstar
Copy link
Member

Running cargo update should fix it for you. Likely that method is in a newer version of Tokio than you have in your directory.

@seanmonstar seanmonstar closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2023
@palfrey
Copy link
Contributor

palfrey commented Oct 12, 2023

Upgrading minimum tokio to 1.13 as per #3345 fixes this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants