Skip to content

Commit

Permalink
Fix: block time should be second (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper authored Aug 26, 2024
1 parent 0424b10 commit 56fd527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brq/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async def _pool_job(self):
consumername=self.consumer_identifier,
streams={self.stream_name: ">"},
count=self.count_per_fetch,
block=self.block_time,
block=int(self.block_time * 1000),
)
if not poll_result:
return
Expand All @@ -299,7 +299,7 @@ async def _pool_job_prallel(self):
consumername=self.consumer_identifier,
streams={self.stream_name: ">"},
count=self.count_per_fetch,
block=self.block_time,
block=int(self.block_time * 1000),
)
if not pool_result:
return
Expand Down

0 comments on commit 56fd527

Please sign in to comment.