mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 21:22:16 +08:00
fix: config
This commit is contained in:
parent
84513128a7
commit
10a2f751fc
@ -197,6 +197,7 @@ func (ws *WsServer) Run(done chan error) error {
|
|||||||
return errs.WrapMsg(sErr, "shutdown err")
|
return errs.WrapMsg(sErr, "shutdown err")
|
||||||
}
|
}
|
||||||
close(shutdownDone)
|
close(shutdownDone)
|
||||||
|
fmt.Println("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
etcd.RegisterShutDown(shutDown)
|
etcd.RegisterShutDown(shutDown)
|
||||||
|
|||||||
@ -94,7 +94,7 @@ func restartServer(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
log.ZInfo(ctx, "shutdown server")
|
log.ZInfo(ctx, "shutdown server")
|
||||||
for _, f := range ShutDowns {
|
for _, f := range ShutDowns {
|
||||||
log.ZInfo(ctx, "shutdown ffff!!!!!")
|
log.ZInfo(ctx, "shutdown ffff")
|
||||||
if err = f(); err != nil {
|
if err = f(); err != nil {
|
||||||
log.ZError(ctx, "shutdown fail", err)
|
log.ZError(ctx, "shutdown fail", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user