用户信息传到service
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dialer
|
||||
|
||||
import (
|
||||
"bff/internal/response"
|
||||
"context"
|
||||
"fmt"
|
||||
"net"
|
||||
@@ -25,6 +26,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.WithContextDialer(func(ctx context.Context, _ string) (net.Conn, error) {
|
||||
inst, err := discovery.Pick(serviceName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user