use registry interface

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2021-02-22 13:42:00 +00:00
parent f15c40d52e
commit f89128a2d9

View File

@@ -18,7 +18,7 @@ var (
// GetRegistry returns a configured micro registry based on Micro env vars.
// It defaults to mDNS, so mind that systems with mDNS disabled by default (i.e SUSE) will have a hard time
// and it needs to explicitly use etcd. Os awareness for providing a working registry out of the box should be done.
func GetRegistry() *registry.Registry {
func GetRegistry() registry.Registry {
addresses := strings.Split(os.Getenv(registryAddressEnv), ",")
var r registry.Registry
@@ -31,5 +31,5 @@ func GetRegistry() *registry.Registry {
r = mdnsr.NewRegistry()
}
return &r
return r
}