@@ -8,16 +8,17 @@ import (
88 "github.com/pubgo/funk/v2/convert"
99 "github.com/pubgo/funk/v2/errors"
1010 "github.com/pubgo/funk/v2/strutil"
11- "github.com/pubgo/lava/v2/clients/grpcc/grpccconfig"
12- "github.com/pubgo/lava/v2/core/lavacontexts"
13- "github.com/pubgo/lava/v2/lava"
14- "github.com/pubgo/lava/v2/pkg/grpcutil"
15- "github.com/pubgo/lava/v2/pkg/httputil"
1611 "github.com/rs/xid"
1712 "github.com/valyala/fasthttp"
1813 "google.golang.org/grpc"
1914 "google.golang.org/grpc/metadata"
2015 "google.golang.org/grpc/peer"
16+
17+ "github.com/pubgo/lava/v2/clients/grpcc/grpccconfig"
18+ "github.com/pubgo/lava/v2/core/lavacontexts"
19+ "github.com/pubgo/lava/v2/lava"
20+ "github.com/pubgo/lava/v2/pkg/grpcutil"
21+ "github.com/pubgo/lava/v2/pkg/httputil"
2122)
2223
2324func md2Head (md metadata.MD , header interface { Add (key , value string ) }) {
@@ -54,7 +55,7 @@ func unaryInterceptor(middlewares []lava.Middleware) grpc.UnaryClientInterceptor
5455 }
5556
5657 unaryWrapper = lava .Chain (middlewares ... ).Middleware (unaryWrapper )
57- return func (ctx context.Context , method string , req , reply interface {} , cc * grpc.ClientConn , invoker grpc.UnaryInvoker , opts ... grpc.CallOption ) (err error ) {
58+ return func (ctx context.Context , method string , req , reply any , cc * grpc.ClientConn , invoker grpc.UnaryInvoker , opts ... grpc.CallOption ) (err error ) {
5859 md , ok := metadata .FromOutgoingContext (ctx )
5960 if ! ok {
6061 md = make (metadata.MD )
0 commit comments