浏览代码

Merge #620

620: Change neighbor discovery timeout from 3s to 1s. r=Dirbaio a=lachlansneff-parallel

As discussed in the matrix chatroom.

Co-authored-by: lachlansneff-parallel <105677805+lachlansneff-parallel@users.noreply.github.com>
bors[bot] 2 年之前
父节点
当前提交
22154e45ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/iface/socket_meta.rs

+ 1 - 1
src/iface/socket_meta.rs

@@ -45,7 +45,7 @@ impl Meta {
     /// in milliseconds.
     ///
     /// See also `iface::NeighborCache::SILENT_TIME`.
-    pub(crate) const DISCOVERY_SILENT_TIME: Duration = Duration::from_millis(3_000);
+    pub(crate) const DISCOVERY_SILENT_TIME: Duration = Duration::from_millis(1_000);
 
     pub(crate) fn poll_at<F>(&self, socket_poll_at: PollAt, has_neighbor: F) -> PollAt
     where