Skip to content
Snippets Groups Projects
Commit 4f433c7b authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix tag announcement.

All tags were announced with a ttl of None.
parent cae16bb6
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,7 @@ class TagDB(object):
def rpc_register_tag(self, tag):
logger.debug('RPC register tag %s', tag.name)
ttl = None if tag.ttl == -1 else None
ttl = None if tag.ttl == -1 else tag.ttl
self.rpc_call(tag.name, self.rpc_tag_register_cb, 'tags_register',
tag.name, ttl, tag.value)
......@@ -333,7 +333,7 @@ class TagDB(object):
def rpc_register_sub_tag(self, sub_id, tag):
logger.debug('RPC register tag %s(%s)', tag.name, sub_id)
ttl = None if tag.ttl == -1 else None
ttl = None if tag.ttl == -1 else tag.ttl
self.rpc_call(tag.name, self.rpc_sub_tag_register_cb,
'sub_tags_register', sub_id, tag.name, ttl, tag.value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment