Skip to content

Commit 08f6ff1

Browse files
committed
### feature:
### optimize: comments format ### bug-fix:
1 parent 01854b1 commit 08f6ff1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/circuitbreaker/rule.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ type Rule struct {
7878
// for ErrorRatio, it represents the max error request ratio
7979
// for ErrorCount, it represents the max error request count
8080
Threshold float64 `json:"threshold"`
81-
//ProbeNum is number of probes required when the circuit breaker is half-open.
82-
//when the probe num are set and circuit breaker in the half-open state.
83-
//if err occurs during the probe, the circuit breaker is opened immediately.
84-
//otherwise,the circuit breaker is closed only after the number of probes is reached
81+
// ProbeNum is number of probes required when the circuit breaker is half-open.
82+
// when the probe num are set and circuit breaker in the half-open state.
83+
// if err occurs during the probe, the circuit breaker is opened immediately.
84+
// otherwise,the circuit breaker is closed only after the number of probes is reached
8585
ProbeNum uint64 `json:"probeNum"`
8686
}
8787

0 commit comments

Comments
 (0)