Skip to content

Commit

Permalink
Merge pull request #22 from nacos-group/develop
Browse files Browse the repository at this point in the history
ListenInterval should larger than TimeoutMs
  • Loading branch information
lzp0412 authored Aug 20, 2019
2 parents 0242d42 + f1964b1 commit 77b8c7a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ constant.ServerConfig{
```go
// 可以没有,采用默认值
clientConfig := constant.ClientConfig{
TimeoutMs: 30 * 1000,
ListenInterval: 10 * 1000,
TimeoutMs: 10 * 1000,
ListenInterval: 30 * 1000,
BeatInterval: 5 * 1000,
LogDir: "/nacos/logs",
CacheDir: "/nacos/cache",
Expand Down
4 changes: 2 additions & 2 deletions clients/client_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func setConfig(properties map[string]interface{}) (iClient nacos_client.INacosCl
}
} else {
_ = client.SetClientConfig(constant.ClientConfig{
TimeoutMs: 30 * 1000,
ListenInterval: 10 * 1000,
TimeoutMs: 10 * 1000,
ListenInterval: 30 * 1000,
BeatInterval: 5 * 1000,
})
}
Expand Down
4 changes: 2 additions & 2 deletions clients/config_client/config_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
**/

var clientConfigTest = constant.ClientConfig{
TimeoutMs: 20000,
ListenInterval: 10000,
TimeoutMs: 10000,
ListenInterval: 20000,
BeatInterval: 10000,
}

Expand Down
4 changes: 2 additions & 2 deletions clients/naming_client/naming_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
)

var clientConfigTest = constant.ClientConfig{
TimeoutMs: 20 * 1000,
TimeoutMs: 10 * 1000,
BeatInterval: 5 * 1000,
ListenInterval: 10 * 1000,
ListenInterval: 30 * 1000,
NotLoadCacheAtStart: true,
}

Expand Down

0 comments on commit 77b8c7a

Please sign in to comment.