ensure register ttl and interval are set

This commit is contained in:
Asim Aslam 2020-08-03 22:44:29 +01:00
parent 24e5b2a034
commit 1439b101ec

View File

@ -75,6 +75,8 @@ func newOptions(opt ...server.Option) server.Options {
Name: server.DefaultName,
Id: server.DefaultId,
Version: server.DefaultVersion,
RegisterInterval: server.DefaultRegisterInterval,
RegisterTTL: server.DefaultRegisterTTL,
}
for _, o := range opt {