瀏覽代碼

udpate

master
DengBiao 2 年之前
父節點
當前提交
c46b96d455
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      pkg/rpc/rpc.go

+ 3
- 3
pkg/rpc/rpc.go 查看文件

@@ -40,7 +40,7 @@ func GetBusinessIntClient() pb.BusinessIntClient {
} }


func initLogicIntClient() { func initLogicIntClient() {
conn, err := grpc.DialContext(context.TODO(), k8s.GetK8STarget("default", "logic", "8000"), grpc.WithInsecure(),
conn, err := grpc.DialContext(context.TODO(), k8s.GetK8STarget("gim", "logic", "8000"), grpc.WithInsecure(),
grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, roundrobin.Name))) grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, roundrobin.Name)))
if err != nil { if err != nil {
panic(err) panic(err)
@@ -49,7 +49,7 @@ func initLogicIntClient() {
} }


func initConnectIntClient() { func initConnectIntClient() {
conn, err := grpc.DialContext(context.TODO(), k8s.GetK8STarget("default", "connect", "8000"), grpc.WithInsecure(),
conn, err := grpc.DialContext(context.TODO(), k8s.GetK8STarget("gim", "connect", "8000"), grpc.WithInsecure(),
grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, picker.AddrPickerName))) grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, picker.AddrPickerName)))
if err != nil { if err != nil {
panic(err) panic(err)
@@ -58,7 +58,7 @@ func initConnectIntClient() {
} }


func initBusinessIntClient() { func initBusinessIntClient() {
conn, err := grpc.DialContext(context.TODO(), k8s.GetK8STarget("default", "business", "8000"), grpc.WithInsecure(),
conn, err := grpc.DialContext(context.TODO(), k8s.GetK8STarget("gim", "business", "8000"), grpc.WithInsecure(),
grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, roundrobin.Name))) grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, roundrobin.Name)))
if err != nil { if err != nil {
panic(err) panic(err)


Loading…
取消
儲存