diff --git a/rpc/apemanager.go b/rpc/apemanager.go index 3f3d6cd..2a89c85 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 7d0bf56..8177694 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." +)