Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
repub: fix typo in comparison
Browse files Browse the repository at this point in the history
We only unset `toPublish` if it was a repeated value.
  • Loading branch information
schomatis committed Jan 15, 2019
1 parent 996259a commit 2e0c3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repub.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (rp *Republisher) Run(lastPublished cid.Cid) {
}

// Avoid publishing duplicate values
if !lastPublished.Equals(toPublish) {
if lastPublished.Equals(toPublish) {
toPublish = cid.Undef
}
case <-quick.C:
Expand Down

0 comments on commit 2e0c3bc

Please sign in to comment.