Skip to content
Snippets Groups Projects
Commit cc3291ce authored by Patrick Godwin's avatar Patrick Godwin
Browse files

kafka.py: return key as str rather than list

parent 2596cffa
Branches master
No related tags found
No related merge requests found
Pipeline #209405 skipped
......@@ -89,8 +89,8 @@ class Client(object):
for msg in self._consumer.consume(num_messages=max_messages, timeout=timeout):
if msg and not msg.error():
if msg.key():
key = msg.key().decode("utf-8").split(".")
msg_tags = set(key)
key = msg.key().decode("utf-8")
msg_tags = set(key.split("."))
else:
key = None
msg_tags = set()
......
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