frostfs-api-go/rpc/client/util.go
Evgenii Stratonikov cc8da15242 [#2] rpc/client: Remove additional wrapper
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-02-06 11:30:33 +03:00

13 lines
232 B
Go

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)
}