mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-19 08:17:01 +02:00
Move log msg
This commit is contained in:
parent
c6a3a3887c
commit
6ca48712e3
@ -553,8 +553,6 @@ func (m *Manager) onPeerInactivityTimedOut(ctx context.Context, peerConnID peeri
|
||||
return
|
||||
}
|
||||
|
||||
mp.peerCfg.Log.Infof("connection timed out")
|
||||
|
||||
if m.shouldDeferIdleForHA(mp.peerCfg.PublicKey) {
|
||||
iw, ok := m.inactivityMonitors[peerConnID]
|
||||
if ok {
|
||||
@ -566,6 +564,8 @@ func (m *Manager) onPeerInactivityTimedOut(ctx context.Context, peerConnID peeri
|
||||
return
|
||||
}
|
||||
|
||||
mp.peerCfg.Log.Infof("connection timed out")
|
||||
|
||||
// this is blocking operation, potentially can be optimized
|
||||
m.peerStore.PeerConnClose(mp.peerCfg.PublicKey)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user