[#2] rpc/client: Remove additional wrapper
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
513e3e137d
commit
cc8da15242
12 changed files with 82 additions and 268 deletions
13
rpc/client/util.go
Normal file
13
rpc/client/util.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/TrueCloudLab/frostfs-api-go/v2/rpc/common"
|
||||
)
|
||||
|
||||
const methodNameFmt = "/%s/%s"
|
||||
|
||||
func toMethodName(p common.CallMethodInfo) string {
|
||||
return fmt.Sprintf(methodNameFmt, p.Service, p.Name)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue