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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)