ensure register ttl and interval are set
This commit is contained in:
parent
b021fcb130
commit
522e04840c
@ -75,6 +75,8 @@ func newOptions(opt ...server.Option) server.Options {
|
|||||||
Name: server.DefaultName,
|
Name: server.DefaultName,
|
||||||
Id: server.DefaultId,
|
Id: server.DefaultId,
|
||||||
Version: server.DefaultVersion,
|
Version: server.DefaultVersion,
|
||||||
|
RegisterInterval: server.DefaultRegisterInterval,
|
||||||
|
RegisterTTL: server.DefaultRegisterTTL,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, o := range opt {
|
for _, o := range opt {
|
||||||
|
Loading…
Reference in New Issue
Block a user