From f838c33008cc01ebf7ebfd1133290953b86426ff Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sun, 9 Aug 2020 16:26:51 +0100 Subject: [PATCH] noop.NewRegistry function --- registry/noop/noop.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/registry/noop/noop.go b/registry/noop/noop.go index 7bed0c0a..0dd9f65e 100644 --- a/registry/noop/noop.go +++ b/registry/noop/noop.go @@ -39,3 +39,8 @@ func (n *noopRegistry) Watch(...registry.WatchOption) (registry.Watcher, error) func (n *noopRegistry) String() string { return "noop" } + +// NewRegistry returns a new noop registry +func NewRegistry(opts ...registry.Option) registry.Registry { + return new(noopRegistry) +}