Skip to content

Commit

Permalink
Fix dns
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Feb 23, 2024
1 parent 1926253 commit e325de4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions discovery/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ func MaxAge(d time.Duration) Option {
}
}

func Discovery(inner discovery.Discovery, opts ...Option) options.Option {
func Discovery(inner options.Option, opts ...Option) options.Option {
return func(o *options.Options) {
var innerOpts options.Options
inner(&innerOpts)

cd := &cacheDiscovery{
inner: inner,
inner: innerOpts.Discovery,
maxAge: 5 * time.Minute,
}

Expand Down

0 comments on commit e325de4

Please sign in to comment.