dgkafka 1.0.2a0__py3-none-any.whl → 1.0.2a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dgkafka/producer.py CHANGED
@@ -172,7 +172,10 @@ class KafkaProducer:
172
172
  """
173
173
  producer = self._ensure_producer()
174
174
  try:
175
- remaining = producer.flush(timeout)
175
+ if timeout:
176
+ remaining = producer.flush(timeout)
177
+ else:
178
+ remaining = producer.flush()
176
179
  if remaining > 0:
177
180
  self.logger.warning(f"[!] {remaining} messages remain undelivered")
178
181
  return remaining
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dgkafka
3
- Version: 1.0.2a0
3
+ Version: 1.0.2a1
4
4
  Summary: Kafka clients
5
5
  Home-page: https://gitlab.com/gng-group/dgkafka.git
6
6
  Author: Malanris
@@ -5,9 +5,9 @@ dgkafka/config.py,sha256=y5O1C0rEJET2Bjes3Y1RzHo9ISnkQE4k_Lx8uOo6wys,3740
5
5
  dgkafka/consumer.py,sha256=OfONH61xj1sD4Z0YIQngfJOOwkx8Ko9waNYCKoXtJL4,8371
6
6
  dgkafka/errors.py,sha256=PaH46tXameS--hrrUXKhQkZlBHvMSMPmjhVeRkmFvV0,95
7
7
  dgkafka/json_consumer.py,sha256=7Gzn7C9WpyCTPDV6eFDugAx5gC9vdV-HrTh3Nv--zIE,1152
8
- dgkafka/producer.py,sha256=GQPVYrbAMkbcbW2GxHR7M5UUyeGgq_ADKwFLsVFR3Ag,6507
9
- dgkafka-1.0.2a0.dist-info/licenses/LICENSE,sha256=pAZXnNE2dxxwXFIduGyn1gpvPefJtUYOYZOi3yeGG94,1068
10
- dgkafka-1.0.2a0.dist-info/METADATA,sha256=dGxlbsztvUAfpjcTq7zWst5SEQ1GnVFUucZY9nrYmJE,6061
11
- dgkafka-1.0.2a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- dgkafka-1.0.2a0.dist-info/top_level.txt,sha256=GyNrxOh7IPdL0t2SxH8DWxg3fUma-ezQ1Kz4zIr2B7U,8
13
- dgkafka-1.0.2a0.dist-info/RECORD,,
8
+ dgkafka/producer.py,sha256=9rl3To0Whl9zeZgefbEdc9LXTfKJiWNUMz2fsvXflJw,6598
9
+ dgkafka-1.0.2a1.dist-info/licenses/LICENSE,sha256=pAZXnNE2dxxwXFIduGyn1gpvPefJtUYOYZOi3yeGG94,1068
10
+ dgkafka-1.0.2a1.dist-info/METADATA,sha256=v6btsqjrf4NipjpGsG1_tMuxLR8v0diUq2qUaRnlgZI,6061
11
+ dgkafka-1.0.2a1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ dgkafka-1.0.2a1.dist-info/top_level.txt,sha256=GyNrxOh7IPdL0t2SxH8DWxg3fUma-ezQ1Kz4zIr2B7U,8
13
+ dgkafka-1.0.2a1.dist-info/RECORD,,