Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxuwan committed Aug 5, 2020
1 parent 0471dfc commit 2c34d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/zookeeper/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (r *zkRegistry) getListener(conf *common.URL) (*RegistryConfigurationListen

var zkListener *RegistryConfigurationListener
dataListener := r.dataListener
ttl := r.GetParam(constant.REGISTRY_TTL_KEY, "")
ttl := r.GetParam(constant.REGISTRY_TTL_KEY, constant.DEFAULT_REG_TTL)
conf.SetParam(constant.REGISTRY_TTL_KEY, ttl)
dataListener.mutex.Lock()
defer dataListener.mutex.Unlock()
Expand Down

0 comments on commit 2c34d7e

Please sign in to comment.