[zmq] Matchmaker redis set instead of list

No need to check element before push.

Change-Id: Ic4b5ff829d0d94a35aaab1af8ff6991a0b5cebe6
Related-to: I25d623eb4bb0a827daa8a316a0ddcb4a473f8694
This commit is contained in:
ozamiatin 2016-02-25 12:56:27 +02:00
parent a17e42d5cf
commit 02135bc1f4

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)