From d83f3b7d53e42db56d99007f308d5c3885ac6cac Mon Sep 17 00:00:00 2001 From: zc Date: Mon, 17 Aug 2020 11:13:27 +0800 Subject: [PATCH] client: fast resolve address --- client/resolver/eru/resolver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/resolver/eru/resolver.go b/client/resolver/eru/resolver.go index 903310dd1..bf60f15b3 100644 --- a/client/resolver/eru/resolver.go +++ b/client/resolver/eru/resolver.go @@ -29,6 +29,7 @@ func New(cc resolver.ClientConn, endpoint string, authority string) *Resolver { cc: cc, discovery: servicediscovery.New(endpoint, authConfig), } + cc.UpdateState(resolver.State{Addresses: []resolver.Address{resolver.Address{endpoint}}}) go r.sync() return r }