Skip to content

Commit 61985e1

Browse files
Fix for stateInfoCache
In oneof internal structures we used non-pointer receiver for method This fix change it to pointer receiver Change-Id: Ib995b8848ab1ae1a18e131ace2363a03c0e469ef Signed-off-by: Gennady Laventman <[email protected]>
1 parent ba68129 commit 61985e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gossip/gossip/channel/channel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ type stateInfoCache struct {
584584
// Add attempts to add the given message to the stateInfoCache,
585585
// and if the message was added, also indexes it.
586586
// Message must be a StateInfo message.
587-
func (cache stateInfoCache) Add(msg *proto.SignedGossipMessage) bool {
587+
func (cache *stateInfoCache) Add(msg *proto.SignedGossipMessage) bool {
588588
added := cache.MessageStore.Add(msg)
589589
pkiID := msg.GetStateInfo().PkiId
590590
if added {

0 commit comments

Comments
 (0)