回调
This commit is contained in:
@@ -3,7 +3,7 @@ package dialer
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"lone-services/bff/internal/response"
|
||||
"lone-services/bff/internal/request"
|
||||
"lone-services/pkg/discovery"
|
||||
"net"
|
||||
"time"
|
||||
@@ -25,7 +25,7 @@ func Nacos(conf zrpc.RpcClientConf) zrpc.Client {
|
||||
|
||||
return zrpc.MustNewClient(cliConf,
|
||||
zrpc.WithDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())),
|
||||
zrpc.WithDialOption(grpc.WithUnaryInterceptor(response.UserClientInterceptor)),
|
||||
zrpc.WithDialOption(grpc.WithUnaryInterceptor(request.UserClientInterceptor)),
|
||||
zrpc.WithDialOption(grpc.WithDefaultCallOptions(grpc.WaitForReady(true))),
|
||||
zrpc.WithDialOption(grpc.WithConnectParams(grpc.ConnectParams{
|
||||
MinConnectTimeout: 2 * time.Second,
|
||||
|
||||
Reference in New Issue
Block a user