Redis Router graceful stop (#116)
* prestop and hasparticipants in interface * add prestop function to existing routers * fakerouter prestop * update protocol version * read lock * redis router graceful stop * test fix * force stop
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ func startServer(c *cli.Context) error {
|
||||
go func() {
|
||||
sig := <-sigChan
|
||||
logger.Infow("exit requested, shutting down", "signal", sig)
|
||||
server.Stop()
|
||||
server.Stop(false)
|
||||
}()
|
||||
|
||||
return server.Start()
|
||||
|
||||
Reference in New Issue
Block a user