grpc is not generic in micro, so name component as rpc

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-02-25 14:51:18 +03:00
parent 9f2dd3ed35
commit 142f6dd866

View File

@ -45,7 +45,7 @@ func (g *Generator) Generate(plugin *protogen.Plugin) error {
case "http":
err = g.httpGenerate(component, plugin)
case "grpc", "rpc":
err = g.rpcGenerate(component, plugin)
err = g.rpcGenerate("rpc", plugin)
case "gorilla":
err = g.gorillaGenerate(component, plugin)
case "chi":