fix shutdown

This commit is contained in:
DeniskaRediska committed 2019-10-18 14:12:48 +03:00
1 parent d5289efddc
commit 6b8f3c8b1d
1 file changed
+1 -2
+1 -2
View File
@@ -13,7 +13,6 @@ import (
"context"
"github.com/integration-system/isp-lib/backend"
"github.com/integration-system/isp-lib/database"
"github.com/integration-system/isp-lib/metric"
"github.com/integration-system/isp-lib/bootstrap"
@@ -82,7 +81,7 @@ func socketConfiguration(cfg interface{}) structure.SocketConfiguration {
func onShutdown(_ context.Context, _ os.Signal) {
backend.StopGrpcServer()
database.Close()
_ = model.DbClient.Close()
}
func onRemoteConfigReceive(remoteConfig, oldConfig *conf.RemoteConfig) {