Don't set the registry in new options for web services (#1489)
This commit is contained in:
parent
bea7c3f7e7
commit
c4442a7533
@ -68,9 +68,7 @@ func newOptions(opts ...Option) Options {
|
|||||||
for _, o := range opts {
|
for _, o := range opts {
|
||||||
o(&opt)
|
o(&opt)
|
||||||
}
|
}
|
||||||
if opt.Registry == nil {
|
|
||||||
opt.Registry = registry.DefaultRegistry
|
|
||||||
}
|
|
||||||
if opt.RegisterCheck == nil {
|
if opt.RegisterCheck == nil {
|
||||||
opt.RegisterCheck = DefaultRegisterCheck
|
opt.RegisterCheck = DefaultRegisterCheck
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user