Prefer RegisterTTL set through Init

This commit is contained in:
Asim
2016-01-27 12:23:18 +00:00
parent 61094fefe8
commit 013d1de2c4
6 changed files with 19 additions and 30 deletions

View File

@@ -44,7 +44,7 @@ func TLSConfig(t *tls.Config) Option {
}
}
func WithTTL(t time.Duration) RegisterOption {
func RegisterTTL(t time.Duration) RegisterOption {
return func(o *RegisterOptions) {
o.TTL = t
}