frostfs-api-go-pogpp/rpc/grpc/util.go
Leonard Lyubich e459378b16 [#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>
2021-06-15 10:15:40 +03:00

13 lines
222 B
Go

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