[#328] cmd/node: Serve Container.AnnounceUsedSpace RPC

Register recently implemented handler of AnnounceUsedSpace RPC in node app.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-02-01 15:43:09 +03:00 committed by Leonard Lyubich
parent b270c49b5c
commit bd5c70131b
4 changed files with 35 additions and 3 deletions

View file

@ -124,9 +124,13 @@ func initContainerService(c *cfg) {
containerService.NewSignService(
c.key,
containerService.NewResponseService(
containerService.NewExecutionService(
containerMorph.NewExecutor(cnrClient),
),
&usedSpaceService{
Service: containerService.NewExecutionService(containerMorph.NewExecutor(cnrClient)),
loadWriterProvider: loadRouter,
loadPlacementBuilder: loadPlacementBuilder,
routeBuilder: routeBuilder,
cfg: c,
},
c.respSvc,
),
),