From e459378b16ecc7f8c7f2e42b5a77b67e68e91cb8 Mon Sep 17 00:00:00 2001
From: Leonard Lyubich <leonard@nspcc.ru>
Date: Tue, 15 Jun 2021 10:08:31 +0300
Subject: [PATCH] [#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>
---
 rpc/grpc/util.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpc/grpc/util.go b/rpc/grpc/util.go
index 61d9abb..150d57d 100644
--- a/rpc/grpc/util.go
+++ b/rpc/grpc/util.go
@@ -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)