Skip to content

Commit

Permalink
调整路由超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Jul 31, 2023
1 parent fddb599 commit c5398a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnt/src/channel/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Context {
if !route.is_p2p() {
if let Some(time) = self.inner.route_table_time.get(&(route.route_key(), *id)) {
//借道传输时,长时间不通信的通道不使用
if time.value().load().elapsed() > Duration::from_secs(3) {
if time.value().load().elapsed() > Duration::from_secs(6) {
return Err(io::Error::new(io::ErrorKind::NotFound, "route time out"));
}
}
Expand Down

0 comments on commit c5398a5

Please sign in to comment.