diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 18:14:43 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 18:14:43 -0700 |
commit | 9dc891b8098542bb089c8c47098b60a8beb76a53 (patch) | |
tree | 2c9b1c569b6b9bb4041ef51076d024b6980089c5 /python/fatcat_web/kafka.py | |
parent | 6464631dbe5c4afeb76f2f3c9d63b89f917c9a3b (diff) | |
download | fatcat-9dc891b8098542bb089c8c47098b60a8beb76a53.tar.gz fatcat-9dc891b8098542bb089c8c47098b60a8beb76a53.zip |
fmt (black): fatcat_web/
Diffstat (limited to 'python/fatcat_web/kafka.py')
-rw-r--r-- | python/fatcat_web/kafka.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/fatcat_web/kafka.py b/python/fatcat_web/kafka.py index 1d7288af..36dafade 100644 --- a/python/fatcat_web/kafka.py +++ b/python/fatcat_web/kafka.py @@ -1,4 +1,3 @@ - import requests from fatcat_web import Config @@ -20,9 +19,9 @@ def kafka_pixy_produce(topic, msg, key=None, sync=True, timeout=25): params = dict() if key: - params['key'] = key + params["key"] = key if sync: - params['sync'] = True + params["sync"] = True resp = requests.post( "{}/topics/{}/messages".format(Config.KAFKA_PIXY_ENDPOINT, topic), params=params, @@ -31,4 +30,4 @@ def kafka_pixy_produce(topic, msg, key=None, sync=True, timeout=25): timeout=timeout, ) resp.raise_for_status() - #print(resp.json()) + # print(resp.json()) |