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 1, 2016
1 parent 6230370 commit 78959a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swim/disseminator.go
Original file line number Diff line number Diff line change
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 78959a1

Please sign in to comment.