Skip to content

Commit

Permalink
rename IdleTasklistCheckInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
vancexu committed Jan 26, 2018
1 parent 6927ba9 commit d341e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions service/matching/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Config struct {
RangeSize int64
GetTasksBatchSize int
UpdateAckInterval time.Duration
CheckPollerInterval time.Duration
IdleTasklistCheckInterval time.Duration
MinTaskThrottlingBurstSize int

// taskWriter configuration
Expand All @@ -54,7 +54,7 @@ func NewConfig() *Config {
RangeSize: 100000,
GetTasksBatchSize: 1000,
UpdateAckInterval: 10 * time.Second,
CheckPollerInterval: 5 * time.Minute,
IdleTasklistCheckInterval: 5 * time.Minute,
OutstandingTaskAppendsThreshold: 250,
MaxTaskBatchSize: 100,
MinTaskThrottlingBurstSize: 10000,
Expand Down
4 changes: 2 additions & 2 deletions service/matching/taskListManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func (c *taskListManagerImpl) getTasksPump() {

go c.deliverBufferTasksForPoll()
updateAckTimer := time.NewTimer(c.config.UpdateAckInterval)
checkPollerTimer := time.NewTimer(c.config.CheckPollerInterval)
checkPollerTimer := time.NewTimer(c.config.IdleTasklistCheckInterval)
getTasksPumpLoop:
for {
select {
Expand Down Expand Up @@ -723,7 +723,7 @@ getTasksPumpLoop:
if len(pollers) == 0 {
c.Stop()
}
checkPollerTimer = time.NewTimer(c.config.CheckPollerInterval)
checkPollerTimer = time.NewTimer(c.config.IdleTasklistCheckInterval)
}
}
}
Expand Down

0 comments on commit d341e9d

Please sign in to comment.