accessman: fix structured logging formatting

This commit is contained in:
Elle Mouton committed 2025-07-01 07:43:26 +02:00
1 parent e54206f8c2
commit a1006d8372
3 files changed
+15 -9

No files matched your search

+1 -2
View File
@@ -611,8 +611,7 @@ func (a *accessMan) addPeerAccess(remotePub *btcec.PublicKey,
// removePeerAccess removes the peer's access from the maps. This should be
// called when the peer has been disconnected.
func (a *accessMan) removePeerAccess(peerPubKey string) {
ctx := btclog.WithCtx(context.TODO(), "peer", peerPubKey)
func (a *accessMan) removePeerAccess(ctx context.Context, peerPubKey string) {
acsmLog.DebugS(ctx, "Removing access:")
a.banScoreMtx.Lock()