update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-01 01:37:54 +03:00
parent 7f17a3e5b0
commit 5a63953d3f
5 changed files with 21 additions and 34 deletions

View File

@@ -25,7 +25,7 @@ type testServer struct {
func (g *testServer) Call(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
if req.Name == "Error" {
return &errors.Error{Id: "id", Code: 99, Detail: "detail"}
return &errors.Error{ID: "id", Code: 99, Detail: "detail"}
}
rsp.Msg = "Hello " + req.Name
return nil