[#306] cmd/node: Serve private node service in storage node app

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-13 15:51:05 +03:00 committed by Alex Vanin
parent c1b8a4815f
commit f3cac6cc31
3 changed files with 77 additions and 0 deletions

View file

@ -41,6 +41,7 @@ func initApp(c *cfg) {
initSessionService(c)
initObjectService(c)
initProfiler(c)
initPrivateService(c)
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Open())
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Init())
@ -71,6 +72,7 @@ func wait(c *cfg) {
func shutdown(c *cfg) {
c.cfgGRPC.server.GracefulStop()
c.cfgPrivateService.server.GracefulStop()
c.log.Info("gRPC server stopped")