register: fix options

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-01-29 15:06:47 +03:00
parent ef4efa6a6b
commit 925b3af46b

View File

@ -246,13 +246,13 @@ func DeregisterDomain(d string) DeregisterOption {
} }
} }
func GetContext(ctx context.Context) LookupOption { func LookupContext(ctx context.Context) LookupOption {
return func(o *LookupOptions) { return func(o *LookupOptions) {
o.Context = ctx o.Context = ctx
} }
} }
func GetDomain(d string) LookupOption { func LookupDomain(d string) LookupOption {
return func(o *LookupOptions) { return func(o *LookupOptions) {
o.Domain = d o.Domain = d
} }