Add debug log for cache hit in sync fast path

This commit is contained in:
mlsmaycon
2026-04-24 12:00:32 +02:00
parent 7e9d3485d8
commit 94730fe066

View File

@@ -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())