[#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>
remotes/KirillovDenis/feature/refactor-sig-rpc
Leonard Lyubich 2021-06-15 10:08:31 +03:00 committed by Alex Vanin
parent 0e53766f2d
commit e459378b16
1 changed files with 1 additions and 1 deletions

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)