peer: fix logging message when receiving updates for unknown channel
The previous logging message was broken as that target chanpoint was being overshadowed by the local variable declaration. The new logging message will properly print the unknown channel point as well as the peer who sent the message.
This commit is contained in:
parent
8c4b5ae0fc
commit
97bb8744c4
8
peer.go
8
peer.go
@ -450,14 +450,14 @@ out:
|
||||
// Dispatch the commitment update message to the proper
|
||||
// active goroutine dedicated to this channel.
|
||||
p.htlcManMtx.Lock()
|
||||
targetChan, ok := p.htlcManagers[*targetChan]
|
||||
channel, ok := p.htlcManagers[*targetChan]
|
||||
p.htlcManMtx.Unlock()
|
||||
if !ok {
|
||||
peerLog.Errorf("recv'd update for unknown channel %v",
|
||||
targetChan)
|
||||
peerLog.Errorf("recv'd update for unknown "+
|
||||
"channel %v from %v", targetChan, p)
|
||||
continue
|
||||
}
|
||||
targetChan <- nextMsg
|
||||
channel <- nextMsg
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user