From f89128a2d9e6589705b96221c6a92b18481de185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 22 Feb 2021 13:42:00 +0000 Subject: [PATCH] use registry interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- ocis-pkg/registry/registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocis-pkg/registry/registry.go b/ocis-pkg/registry/registry.go index 102599802b..c88274f629 100644 --- a/ocis-pkg/registry/registry.go +++ b/ocis-pkg/registry/registry.go @@ -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 }