accessman: fix structured logging formatting

This commit is contained in:
Elle Mouton
2025-07-01 07:43:26 +02:00
committed by Oliver Gugger
parent 5398229079
commit f6c41565d1
3 changed files with 15 additions and 9 deletions

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