dgkafka 1.0.2a0__tar.gz → 1.0.2a1__tar.gz

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.
@@ -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
@@ -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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dgkafka"
7
- version = "1.0.2a0"
7
+ version = "1.0.2a1"
8
8
  authors = [
9
9
  {name = "Roman Rasputin", email = "admin@roro.su"},
10
10
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes