This commit is contained in:
parent
55c7fe31e0
commit
6ad89f3a33
@ -4,14 +4,13 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/cloudwego/kitex/client"
|
"github.com/cloudwego/kitex/client"
|
||||||
dns "github.com/kitex-contrib/resolver-dns"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
defaultClient RPCClient
|
defaultClient RPCClient
|
||||||
defaultDstService = "pusher"
|
defaultDstService = "pusher"
|
||||||
defaultClientOpts = []client.Option{
|
defaultClientOpts = []client.Option{
|
||||||
client.WithResolver(dns.NewDNSResolver()),
|
client.WithHostPorts("pusher:8080"),
|
||||||
}
|
}
|
||||||
once sync.Once
|
once sync.Once
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user