forked from TrueCloudLab/frostfs-api-go
e459378b16
All calling RPC's should have a leading slash according to docs of using gRPC library. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
13 lines
222 B
Go
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)
|
|
}
|