Skip to content

Commit 7794f6d

Browse files
committed
[fs] polling_interval config should be milliseconds not microseconds
regression from this commit php-enqueue/fs@c5199ca config should be milliseconds like in docs stated.....$this->pollingInterval is holding milliseconds which is correct. But usleep is using microseconds. To fix it just convert milliseconds to microseconds
1 parent 565f0f7 commit 7794f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fs/FsConsumer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function receive(int $timeout = 0): ?Message
9090
return null;
9191
}
9292

93-
usleep($this->pollingInterval);
93+
usleep($this->pollingInterval * 1000);
9494

9595
if ($timeout && (microtime(true) - $startAt) >= $timeout) {
9696
return null;

0 commit comments

Comments
 (0)