Remove testing tokio task
That fires 'GetPeers' requests at our running 'zebra seed'.
This commit is contained in:
parent
43b77b080e
commit
42cc55b0bb
|
|
@ -39,6 +39,3 @@ tracing-error = "0.1.2"
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
abscissa_core = { version = "0.5", features = ["testing"] }
|
abscissa_core = { version = "0.5", features = ["testing"] }
|
||||||
once_cell = "1.4"
|
once_cell = "1.4"
|
||||||
|
|
||||||
[features]
|
|
||||||
dos = []
|
|
||||||
|
|
|
||||||
|
|
@ -147,22 +147,6 @@ impl SeedCmd {
|
||||||
|
|
||||||
info!("peer_set became ready");
|
info!("peer_set became ready");
|
||||||
|
|
||||||
#[cfg(feature = "dos")]
|
|
||||||
use std::time::Duration;
|
|
||||||
|
|
||||||
#[cfg(feature = "dos")]
|
|
||||||
// Fire GetPeers requests at ourselves, for testing.
|
|
||||||
tokio::spawn(async move {
|
|
||||||
let mut interval_stream = tokio::time::interval(Duration::from_secs(1));
|
|
||||||
let mut svc = buffered_svc.clone();
|
|
||||||
|
|
||||||
loop {
|
|
||||||
interval_stream.next().await;
|
|
||||||
|
|
||||||
let _ = svc.call(Request::Peers);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
let eternity = future::pending::<()>();
|
let eternity = future::pending::<()>();
|
||||||
eternity.await;
|
eternity.await;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue