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> |
||
|---|---|---|
| .. | ||
| checkpoint | ||
| common | ||
| config | ||
| interfaces | ||
| metrics | ||
| partition | ||
| utils | ||
| worker | ||