mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-09 00:11:28 +02:00
Add debug log for cache hit in sync fast path
This commit is contained in:
@@ -272,6 +272,7 @@ func (s *Server) commitFastPath(
|
||||
var peer *nbpeer.Peer
|
||||
if cachedPeer != nil {
|
||||
peer = cachedPeer
|
||||
log.WithContext(ctx).Debugf("fast path: GetPeerByPeerPubKey skipped (cache hit)")
|
||||
} else {
|
||||
getPeerStart := time.Now()
|
||||
p, err := s.accountManager.GetStore().GetPeerByPeerPubKey(ctx, store.LockingStrengthNone, peerKey.String())
|
||||
|
||||
Reference in New Issue
Block a user