Skip to content

Commit

Permalink
fix fifo republish queue lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Westcott committed Sep 29, 2020
1 parent 6624aff commit ae5d9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signer/gossip/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func (n *Node) publishCompletedRound(ctx context.Context, round *round) error {
}

func (n *Node) republishCompletedRound(ctx context.Context, round *round) error {
roundConfPayload, ok := n.roundRepublishCache.Peek(round) // Peek acts as FIFO based on insert above
roundConfPayload, ok := n.roundRepublishCache.Peek(round.height) // Peek acts as FIFO based on insert above
if ok {
n.logger.Debugf("republishing round confirmed to: %s", n.notaryGroup.ID)
return n.pubsub.Publish(n.notaryGroup.ID, roundConfPayload.([]byte))
Expand Down

0 comments on commit ae5d9d2

Please sign in to comment.