Skip to content

Commit

Permalink
add documentation for why we don’t publish on retry
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Oct 11, 2024
1 parent ad9d559 commit 0069b45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func (p *Peer) handleLog(evt event.Update) error {
// push to each peer (replicator)
p.pushLogToReplicators(evt)

// Retries are for replicators only and should not polluting the pubsub network.
if !evt.IsRetry {
req := &pushLogRequest{
DocID: evt.DocID,
Expand Down

0 comments on commit 0069b45

Please sign in to comment.