From b171364079c3dc85db4a4e737232419055f20404 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Mon, 6 May 2024 14:28:49 +0300 Subject: [PATCH] [#81] rpc: Fix apemanager rpc service name * Introduce `frostfsServiceNamePrefix` for rpc interface since `apemanager` uses `frostfs` root instead `neo.fs`. Signed-off-by: Airat Arifullin --- rpc/apemanager.go | 2 +- rpc/common.go | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rpc/apemanager.go b/rpc/apemanager.go index 3f3d6cdc..2a89c85a 100644 --- a/rpc/apemanager.go +++ b/rpc/apemanager.go @@ -6,7 +6,7 @@ import ( "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/common" ) -const serviceAPEManager = serviceNamePrefix + "apemanager.APEManagerService" +const serviceAPEManager = frostfsServiceNamePrefix + "apemanager.APEManagerService" const ( rpcAPEManagerAddChain = "AddChain" diff --git a/rpc/common.go b/rpc/common.go index 7d0bf56b..8177694f 100644 --- a/rpc/common.go +++ b/rpc/common.go @@ -1,3 +1,10 @@ package rpc -const serviceNamePrefix = "neo.fs.v2." +const ( + // serviceNamePrefix is still used in "old" services but should be + // considered as deprecated. Since new services use "frostfs" root, + // `frostfsServiceNamePrefix` must be used for their rpc interface. + serviceNamePrefix = "neo.fs.v2." + + frostfsServiceNamePrefix = "frostfs.v2." +)