1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-29 20:39:48 +02:00

Don't set the registry in new options for web services (#1489)

This commit is contained in:
Asim Aslam 2020-04-06 13:40:40 +01:00 committed by GitHub
parent bea7c3f7e7
commit c4442a7533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,9 +68,7 @@ func newOptions(opts ...Option) Options {
for _, o := range opts {
o(&opt)
}
if opt.Registry == nil {
opt.Registry = registry.DefaultRegistry
}
if opt.RegisterCheck == nil {
opt.RegisterCheck = DefaultRegisterCheck
}