forked from TrueCloudLab/frostfs-api-go
[#306] grpc: Fix the format of full method names
All calling RPC's should have a leading slash according to docs of using gRPC library. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0e53766f2d
commit
e459378b16
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import (
|
||||||
"github.com/nspcc-dev/neofs-api-go/rpc/common"
|
"github.com/nspcc-dev/neofs-api-go/rpc/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const methodNameFmt = "%s/%s"
|
const methodNameFmt = "/%s/%s"
|
||||||
|
|
||||||
func toMethodName(p common.CallMethodInfo) string {
|
func toMethodName(p common.CallMethodInfo) string {
|
||||||
return fmt.Sprintf(methodNameFmt, p.Service, p.Name)
|
return fmt.Sprintf(methodNameFmt, p.Service, p.Name)
|
||||||
|
|
Loading…
Reference in a new issue