1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

update examples (#1108)

* update examples/README.md and delete the middleware.Chain contained in examples

* update examples/README.md
This commit is contained in:
包子
2021-06-25 10:10:50 +08:00
committed by GitHub
parent 07f9fa3e91
commit 8d30b6d489
2 changed files with 14 additions and 4 deletions
+1 -4
View File
@@ -6,7 +6,6 @@ import (
pb "github.com/go-kratos/kratos/examples/helloworld/helloworld"
"github.com/go-kratos/kratos/v2/errors"
"github.com/go-kratos/kratos/v2/middleware"
"github.com/go-kratos/kratos/v2/middleware/recovery"
transgrpc "github.com/go-kratos/kratos/v2/transport/grpc"
transhttp "github.com/go-kratos/kratos/v2/transport/http"
@@ -50,9 +49,7 @@ func callGRPC() {
context.Background(),
transgrpc.WithEndpoint("127.0.0.1:9000"),
transgrpc.WithMiddleware(
middleware.Chain(
recovery.Recovery(),
),
recovery.Recovery(),
),
)
if err != nil {