mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 21:51:27 +02:00
discovery: fix log line panic
If a method returns an error, we should assume all other parameters to be nil unless the documentation explicitly says otherwise. So here, we fix a log line where a dereference is made to an object that will be nil due to an error being returned.
This commit is contained in:
committed by
Oliver Gugger
parent
d90781e36a
commit
4efcb075de
@@ -2234,7 +2234,7 @@ func (d *AuthenticatedGossiper) isMsgStale(_ context.Context,
|
||||
}
|
||||
if err != nil {
|
||||
log.Debugf("Unable to retrieve channel=%v from graph: "+
|
||||
"%v", chanInfo.ChannelID, err)
|
||||
"%v", msg.ShortChannelID, err)
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user