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) +}