From 142f6dd866ee5963a40813044069882137386179 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 25 Feb 2021 14:51:18 +0300 Subject: [PATCH] grpc is not generic in micro, so name component as rpc Signed-off-by: Vasiliy Tolstov --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index adfd7e8..5ebc2ae 100644 --- a/main.go +++ b/main.go @@ -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":