forked from TrueCloudLab/frostfs-api-go
[#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 <a.arifullin@yadro.com>
This commit is contained in:
parent
0fe6b9adbb
commit
b171364079
2 changed files with 9 additions and 2 deletions
|
@ -6,7 +6,7 @@ import (
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/common"
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const serviceAPEManager = serviceNamePrefix + "apemanager.APEManagerService"
|
const serviceAPEManager = frostfsServiceNamePrefix + "apemanager.APEManagerService"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
rpcAPEManagerAddChain = "AddChain"
|
rpcAPEManagerAddChain = "AddChain"
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
package rpc
|
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."
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue