Skip to content

Commit

Permalink
### feature:
Browse files Browse the repository at this point in the history
### optimize:
comments format
### bug-fix:
  • Loading branch information
578223592 committed Oct 9, 2024
1 parent 01854b1 commit 08f6ff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/circuitbreaker/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ type Rule struct {
// for ErrorRatio, it represents the max error request ratio
// for ErrorCount, it represents the max error request count
Threshold float64 `json:"threshold"`
//ProbeNum is number of probes required when the circuit breaker is half-open.
//when the probe num are set and circuit breaker in the half-open state.
//if err occurs during the probe, the circuit breaker is opened immediately.
//otherwise,the circuit breaker is closed only after the number of probes is reached
// ProbeNum is number of probes required when the circuit breaker is half-open.
// when the probe num are set and circuit breaker in the half-open state.
// if err occurs during the probe, the circuit breaker is opened immediately.
// otherwise,the circuit breaker is closed only after the number of probes is reached
ProbeNum uint64 `json:"probeNum"`
}

Expand Down

0 comments on commit 08f6ff1

Please sign in to comment.