mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 22:27:22 +01:00
discovery: add comments
This commit is contained in:
@@ -411,6 +411,10 @@ type processedNetworkMsg struct {
|
|||||||
|
|
||||||
// cachedNetworkMsg is a wrapper around a network message that can be used with
|
// cachedNetworkMsg is a wrapper around a network message that can be used with
|
||||||
// *lru.Cache.
|
// *lru.Cache.
|
||||||
|
//
|
||||||
|
// NOTE: This struct is not thread safe which means you need to assure no
|
||||||
|
// concurrent read write access to it and all its contents which are pointers
|
||||||
|
// as well.
|
||||||
type cachedNetworkMsg struct {
|
type cachedNetworkMsg struct {
|
||||||
msgs []*processedNetworkMsg
|
msgs []*processedNetworkMsg
|
||||||
}
|
}
|
||||||
@@ -3136,7 +3140,9 @@ func (d *AuthenticatedGossiper) handleChanUpdate(ctx context.Context,
|
|||||||
|
|
||||||
// NOTE: We don't return anything on the error channel for this
|
// NOTE: We don't return anything on the error channel for this
|
||||||
// message, as we expect that will be done when this
|
// message, as we expect that will be done when this
|
||||||
// ChannelUpdate is later reprocessed.
|
// ChannelUpdate is later reprocessed. This might never happen
|
||||||
|
// if the corresponding ChannelAnnouncement is never received
|
||||||
|
// or the LRU cache is filled up and the entry is evicted.
|
||||||
return nil, false
|
return nil, false
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user