Skip to content

Commit

Permalink
Fix bug with logic being wrong way around
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish committed Jun 25, 2014
1 parent ac57c2c commit 276fceb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/synapse/service_watcher/etcd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def discover
true
end
else
log.info "synapse: discovered #{new_backends.length} backends for service #{@name}"
if @backends == new_backends
if @backends != new_backends
log.info "synapse: discovered #{new_backends.length} backends (including new) for service #{@name}"
@backends = new_backends
true
Expand Down

0 comments on commit 276fceb

Please sign in to comment.