ping/rust/src/main: Decrease ping interval (#46)

This will speed up test runs.
This commit is contained in:
Max Inden 2022-09-30 18:29:21 +01:00 committed by GitHub
parent a9292a67d2
commit 5b5b653430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
development_transport(local_key).await?,
ping::Behaviour::new(
ping::Config::new()
.with_interval(Duration::from_secs(10))
.with_interval(Duration::from_secs(1))
.with_keep_alive(true),
),
local_peer_id,