Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Wieger Steggerda committed Feb 2, 2016
1 parent 6230370 commit 9335099
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swim/disseminator.go
Expand Up @@ -92,10 +92,10 @@ func (d *disseminator) AdjustMaxPropagations() {

// HasChanges reports whether disseminator has changes to disseminate.
func (d *disseminator) HasChanges() bool {
d.Lock()
r := len(d.changes) > 0
d.Unlock()
return r
d.RLock()
result := len(d.changes) > 0
d.RUnlock()
return result
}

func (d *disseminator) FullSync() (changes []Change) {
Expand Down

0 comments on commit 9335099

Please sign in to comment.