Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix default serviceExpireTime #226

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading