vimpunk / cratetorrent

A BitTorrent V1 engine library for Rust (and currently Linux)
468 stars 35 forks source link

Implement tracker error timeout #112

Open Awkor opened 2 years ago

Awkor commented 2 years ago

Let me know if you think the approach is valid or if there's something you would like to be changed (e.g. variable names).

I still need to add the documentation comments.

I tried compiling the test CLI to run the integration tests but I got the following error:

error[E0599]: the method `next` exists for struct `tokio::sync::mpsc::unbounded::UnboundedReceiver<cratetorrent::alert::Alert>`, but its trait bounds were not satisfied
  --> src/main.rs:72:38
   |
72 |     while let Some(alert) = alert_rx.next().await {
   |                                      ^^^^ method cannot be called on `tokio::sync::mpsc::unbounded::UnboundedReceiver<cratetorrent::alert::Alert>` due to unsatisfied trait bounds