Skip to content

Commit

Permalink
Merge pull request #481 from quorumcontrol/republish-perf-2
Browse files Browse the repository at this point in the history
fix fifo republish queue lookup
  • Loading branch information
tobowers authored Sep 29, 2020
2 parents 6624aff + ae5d9d2 commit 8ffbcb1
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 8ffbcb1

Please sign in to comment.