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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user