Skip to content

Commit

Permalink
fix default serviceExpireTime
Browse files Browse the repository at this point in the history
Signed-off-by: haozhicui <[email protected]>
  • Loading branch information
haozhicui committed Dec 16, 2024
1 parent ce114db commit 5bd05a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
// DefaultDiscoverServiceRetryInterval 默认首次发现discovery服务重试间隔.
DefaultDiscoverServiceRetryInterval = 5 * time.Second
// DefaultServiceExpireTime 默认的服务超时淘汰时间.
DefaultServiceExpireTime = 24 * time.Hour
DefaultServiceExpireTime = 1 * time.Hour
// DefaultServiceRefreshIntervalDuration 默认的服务刷新间隔.
DefaultServiceRefreshIntervalDuration = 2 * time.Second
// DefaultServerConnectTimeout 默认SDK往Server连接超时时间间隔.
Expand Down
6 changes: 3 additions & 3 deletions polaris.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ consumer:
#描述:服务过期淘汰时间
#类型:string
#格式:^\d+(ms|s|m|h)$
#范围:[1m:...]
#默认值:24h
serviceExpireTime: 24h
#范围:[5s:1h]
#默认值:1h
serviceExpireTime: 1h
#描述:服务定期刷新周期
#类型:string
#格式:^\d+(ms|s|m|h)$
Expand Down

0 comments on commit 5bd05a3

Please sign in to comment.