Skip to content

Commit

Permalink
consumer: added close! with timeout argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois committed Jan 3, 2022
1 parent b106ae9 commit 7629c0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kinsky/client.clj
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,10 @@
GenericDriver
(close! [this]
(.close consumer))
(close! [this timeout]
(if (nil? timeout)
(.close consumer)
(.close consumer (long timeout) TimeUnit/MILLISECONDS)))
MetadataDriver
(partitions-for [this topic]
(mapv partition-info->data (.partitionsFor consumer topic)))
Expand Down

0 comments on commit 7629c0a

Please sign in to comment.