From 276fcebd2d17019ae08f4c6f80f209951e9980f7 Mon Sep 17 00:00:00 2001 From: Tomas Doran Date: Sat, 7 Jun 2014 18:21:46 +0100 Subject: [PATCH] Fix bug with logic being wrong way around --- lib/synapse/service_watcher/etcd.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/synapse/service_watcher/etcd.rb b/lib/synapse/service_watcher/etcd.rb index 74e281d9..45e72b99 100644 --- a/lib/synapse/service_watcher/etcd.rb +++ b/lib/synapse/service_watcher/etcd.rb @@ -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