Skip to content

Commit 8ffbcb1

Browse files
authored
Merge pull request #481 from quorumcontrol/republish-perf-2
fix fifo republish queue lookup
2 parents 6624aff + ae5d9d2 commit 8ffbcb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signer/gossip/node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ func (n *Node) publishCompletedRound(ctx context.Context, round *round) error {
465465
}
466466

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

0 commit comments

Comments
 (0)