File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,10 @@ type processedNetworkMsg struct {
411
411
412
412
// cachedNetworkMsg is a wrapper around a network message that can be used with
413
413
// *lru.Cache.
414
+ //
415
+ // NOTE: This struct is not thread safe which means you need to assure no
416
+ // concurrent read write access to it and all its contents which are pointers
417
+ // as well.
414
418
type cachedNetworkMsg struct {
415
419
msgs []* processedNetworkMsg
416
420
}
@@ -3136,7 +3140,9 @@ func (d *AuthenticatedGossiper) handleChanUpdate(ctx context.Context,
3136
3140
3137
3141
// NOTE: We don't return anything on the error channel for this
3138
3142
// message, as we expect that will be done when this
3139
- // ChannelUpdate is later reprocessed.
3143
+ // ChannelUpdate is later reprocessed. This might never happen
3144
+ // if the corresponding ChannelAnnouncement is never received
3145
+ // or the LRU cache is filled up and the entry is evicted.
3140
3146
return nil , false
3141
3147
3142
3148
default :
You can’t perform that action at this time.
0 commit comments