Skip to content

Commit

Permalink
proxy producer purge
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschltelus committed Jun 26, 2024
1 parent f531996 commit b663b21
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ def flush(self, timeout=-1):
def poll(self, timeout=-1):
return self._producer.poll(timeout)

def purge(self, in_queue=True, in_flight=True, blocking=True):
self._producer.purge(in_queue, in_flight, blocking)

def produce(
self, topic, value=None, *args, **kwargs
): # pylint: disable=keyword-arg-before-vararg
Expand Down

0 comments on commit b663b21

Please sign in to comment.