Merge "[zmq] Matchmaker redis set instead of list"

This commit is contained in:
Jenkins 2016-02-25 18:05:01 +00:00 committed by Gerrit Code Review
commit b2f68cc34f

View File

@ -131,8 +131,7 @@ class RedisMatchMaker(base.MatchMakerBase):
def register_publisher(self, hostname):
host_str = ",".join(hostname)
if host_str not in self._get_hosts_by_key(_PUBLISHERS_KEY):
self._redis.sadd(_PUBLISHERS_KEY, host_str)
self._redis.sadd(_PUBLISHERS_KEY, host_str)
def unregister_publisher(self, hostname):
host_str = ",".join(hostname)