change default HaltDuration to 1h

This commit is contained in:
c9s 2024-08-24 11:43:12 +08:00
parent 14fff8dbad
commit 5f65e87e89
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -120,7 +120,7 @@ func NewBasicCircuitBreaker(strategyID, strategyInstance string) *BasicCircuitBr
MaximumConsecutiveLossTimes: 8, MaximumConsecutiveLossTimes: 8,
MaximumHaltTimes: 3, MaximumHaltTimes: 3,
MaximumHaltTimesExceededPanic: false, MaximumHaltTimesExceededPanic: false,
HaltDuration: types.Duration(30 * time.Minute), HaltDuration: types.Duration(1 * time.Hour),
strategyID: strategyID, strategyID: strategyID,
strategyInstance: strategyInstance, strategyInstance: strategyInstance,
metricsLabels: prometheus.Labels{"strategy": strategyID, "strategyInstance": strategyInstance}, metricsLabels: prometheus.Labels{"strategy": strategyID, "strategyInstance": strategyInstance},