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
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: