feat 修改pusher的默认rpc客户端
All checks were successful
Build image / build (push) Successful in 41s

This commit is contained in:
timerzz 2024-06-19 20:30:36 +08:00
parent 55c7fe31e0
commit 6ad89f3a33

View File

@ -4,14 +4,13 @@ import (
"sync"
"github.com/cloudwego/kitex/client"
dns "github.com/kitex-contrib/resolver-dns"
)
var (
defaultClient RPCClient
defaultDstService = "pusher"
defaultClientOpts = []client.Option{
client.WithResolver(dns.NewDNSResolver()),
client.WithHostPorts("pusher:8080"),
}
once sync.Once
)