[#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:
Leonard Lyubich 2021-06-15 10:08:31 +03:00 committed by Alex Vanin
parent 0e53766f2d
commit e459378b16

View file

@ -6,7 +6,7 @@ import (
"github.com/nspcc-dev/neofs-api-go/rpc/common"
)
const methodNameFmt = "%s/%s"
const methodNameFmt = "/%s/%s"
func toMethodName(p common.CallMethodInfo) string {
return fmt.Sprintf(methodNameFmt, p.Service, p.Name)