try fix rc
This commit is contained in:
1 parent
41357efef0
commit
b3452ef5f6
1 file changed
+3
-5
@@ -72,8 +72,6 @@ func (w *accountingWorker) init(accountingSetting conf.Accounting) {
|
||||
newRequestsStoringStorage := make(map[int32]bool)
|
||||
|
||||
if accountingSetting.Enable {
|
||||
InitStoringTask(accountingSetting.Storing)
|
||||
|
||||
for _, s := range accountingSetting.Setting {
|
||||
limitStates, patternArray := state.InitLimitState(s.Limits)
|
||||
accounting := w.recoveryAccounting(s.ApplicationId, limitStates, patternArray)
|
||||
@@ -81,12 +79,12 @@ func (w *accountingWorker) init(accountingSetting conf.Accounting) {
|
||||
newAccountingStorage[s.ApplicationId] = accounting
|
||||
newRequestsStoringStorage[s.ApplicationId] = s.EnableStoring
|
||||
}
|
||||
|
||||
InitSnapshotTask(accountingSetting.SnapshotTimeout)
|
||||
}
|
||||
|
||||
w.requestsStoring = newRequestsStoringStorage
|
||||
w.accountingStorage = newAccountingStorage
|
||||
|
||||
InitStoringTask(accountingSetting.Storing)
|
||||
InitSnapshotTask(accountingSetting.SnapshotTimeout)
|
||||
}
|
||||
|
||||
func (w *accountingWorker) takeSnapshot() []entity.Snapshot {
|
||||
|
||||
Reference in new issue
Block a user