projects
/
osm
/
MON.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a76e70
)
Small bug fix in producer.py
90/5490/1
author
Helena McGough
<helena.mcgough@intel.com>
Mon, 2 Oct 2017 16:02:01 +0000
(17:02 +0100)
committer
Helena McGough
<helena.mcgough@intel.com>
Mon, 2 Oct 2017 16:02:59 +0000
(17:02 +0100)
Signed-off-by: Helena McGough <helena.mcgough@intel.com>
core/message_bus/producer.py
patch
|
blob
|
history
diff --git
a/core/message_bus/producer.py
b/core/message_bus/producer.py
index
f5abce2
..
1b0de7a
100644
(file)
--- a/
core/message_bus/producer.py
+++ b/
core/message_bus/producer.py
@@
-65,7
+65,7
@@
class KafkaProducer(object):
def publish(self, key, value, topic=None):
try:
- future = self.producer.send(
key, value, topic
)
+ future = self.producer.send(
topic=topic, key=key, value=value
)
self.producer.flush()
except Exception:
logging.exception("Error publishing to {} topic." .format(topic))