Skip to content

Commit

Permalink
scheduler delay is 500 ms (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin0325 authored Oct 14, 2021
1 parent 9043c66 commit 15bb5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/config_client/config_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func NewConfigClient(nc nacos_client.INacosClient) (*ConfigClient, error) {
schedulerMap: cache.NewConcurrentMap(),
}
config.schedulerMap.Set("root", true)
go config.delayScheduler(time.NewTimer(1*time.Millisecond), 10*time.Millisecond, "root", config.listenConfigExecutor())
go config.delayScheduler(time.NewTimer(1*time.Millisecond), 500*time.Millisecond, "root", config.listenConfigExecutor())

config.INacosClient = nc
clientConfig, err := nc.GetClientConfig()
Expand Down

0 comments on commit 15bb5d2

Please sign in to comment.