Set the default resolver to registry

This commit is contained in:
Milos Gajdos 2019-08-22 18:57:20 +01:00
parent e53484302c
commit 8c3eec9f2a
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -2,7 +2,7 @@ package network
import (
"github.com/micro/go-micro/network/resolver"
"github.com/micro/go-micro/network/resolver/dns"
"github.com/micro/go-micro/network/resolver/registry"
"github.com/micro/go-micro/proxy"
"github.com/micro/go-micro/proxy/mucp"
"github.com/micro/go-micro/router"
@ -77,6 +77,6 @@ func DefaultOptions() Options {
Tunnel: tunnel.NewTunnel(),
Router: router.DefaultRouter,
Proxy: mucp.NewProxy(),
Resolver: &dns.Resolver{},
Resolver: &registry.Resolver{},
}
}