prooph / pdo-event-store

PDO implementation of ProophEventStore http://getprooph.org
BSD 3-Clause "New" or "Revised" License
111 stars 56 forks source link

Gapdetection default wrong time definition #243

Open hvanoch opened 2 years ago

hvanoch commented 2 years ago

https://github.com/prooph/pdo-event-store/blob/541fc4dc28f98d6d6d94f4f18d8dd00da4d267cf/src/Projection/GapDetection.php#L39 defines the time to sleep in ms. But when the sleep is actually called, a usleep is used. https://github.com/prooph/pdo-event-store/blob/541fc4dc28f98d6d6d94f4f18d8dd00da4d267cf/src/Projection/PdoEventStoreReadModelProjector.php#L519

So this should be multiplied by a factor 1000

prolic commented 2 years ago

@hvanoch do you want to submit a pull request and update the docs?