[#12] Serve gRPC session service in neofs-node app

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-24 18:51:42 +03:00 committed by Alex Vanin
parent f5a0e354ef
commit c378c353d5
4 changed files with 35 additions and 10 deletions

View file

@ -5,9 +5,7 @@ import (
"log"
object "github.com/nspcc-dev/neofs-api-go/v2/object/grpc"
session "github.com/nspcc-dev/neofs-api-go/v2/session/grpc"
objectGRPC "github.com/nspcc-dev/neofs-node/pkg/network/transport/object/grpc"
sessionGRPC "github.com/nspcc-dev/neofs-node/pkg/network/transport/session/grpc"
"github.com/nspcc-dev/neofs-node/pkg/util/grace"
)
@ -36,8 +34,8 @@ func init_(c *cfg) {
initAccountingService(c)
initContainerService(c)
initSessionService(c)
session.RegisterSessionServiceServer(c.cfgGRPC.server, sessionGRPC.New(new(sessionSvc)))
object.RegisterObjectServiceServer(c.cfgGRPC.server, objectGRPC.New(new(objectSvc)))
}