Skip to content

Commit

Permalink
Bugfix in RdKafkaProducer:flush() method
Browse files Browse the repository at this point in the history
Avoid TypeError in `RdKafkaProducer::flush()`
  • Loading branch information
alexbusu-motork authored Apr 3, 2024
1 parent bb6e759 commit 266a21a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/rdkafka/RdKafkaProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,7 @@ public function flush(int $timeout): ?int
if (method_exists($this->producer, 'flush')) {
return $this->producer->flush($timeout);
}

return null;
}
}

0 comments on commit 266a21a

Please sign in to comment.