Skip to content

Commit e19d2b3

Browse files
committed
fix(connect): treat gateway accepts as courtesy
1 parent 51a8e0f commit e19d2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/src/operations/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl RelayContext for RelayEnv<'_> {
306306
}
307307

308308
fn courtesy_hint(&self, _acceptor: &PeerKeyLocation, _joiner: &PeerKeyLocation) -> bool {
309-
self.op_manager.ring.open_connections() == 0
309+
self.op_manager.ring.is_gateway()
310310
}
311311
}
312312

0 commit comments

Comments
 (0)