Skip to content

Commit

Permalink
add comments for registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Asim Aslam committed Jan 7, 2017
1 parent 4d4db84 commit fd78e1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,14 @@ func Action(a func(*cli.Context)) Option {
}
}

// RegisterTTL specifies the TTL to use when registering the service
func RegisterTTL(t time.Duration) Option {
return func(o *Options) {
o.Server.Init(server.RegisterTTL(t))
}
}

// RegisterInterval specifies the interval on which to re-register
func RegisterInterval(t time.Duration) Option {
return func(o *Options) {
o.RegisterInterval = t
Expand Down

0 comments on commit fd78e1d

Please sign in to comment.