vmware-go-kcl-v2/clientlibrary/worker
Aurélien Rainone f1935bc0ff Fix potentially delayed shutdown on shard sync (#64)
ull-request #62 wrongly introduced an increased delay on
shutdown.

Before #62 the `stop` channel could be triggered while waiting for
`syncShard` milliseconds, so the function could return as soon as
`stop` was received.

However #62 changed this behavior by sleeping in the default case:
`stop` couldn't be handled right away anymore. Instead it was
handled after a whole new loop, potentially delaying shutdown by
minutes. (up to synchard * 1.5 ms).

This commit fixes that.

Signed-off-by: Aurélien Rainone <aurelien.rainone@gmail.com>
2021-12-20 21:21:15 -06:00
..
record-processor-checkpointer.go Add support for providing custom checkpointer (#17) 2021-12-20 21:21:14 -06:00
shard-consumer.go Make the lease refresh period configurable (#56) 2021-12-20 21:21:15 -06:00
worker.go Fix potentially delayed shutdown on shard sync (#64) 2021-12-20 21:21:15 -06:00