Skip to content

Commit

Permalink
fix: add a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
polsar88 committed Aug 25, 2024
1 parent 13adab3 commit c78b389
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/checks/latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (
)

type FailureCounts struct {
// TODO(polsar): Average out the latencies over the `detectionWindow`.
// For V2, add the minimum number of measurements required to make a decision,
// as well as other aggregation options.
// TODO(polsar): Replace these with sliding window counts (must be thread-safe).
// https://failsafe-go.dev/circuit-breaker/
latencyTooHigh uint64
Expand Down

0 comments on commit c78b389

Please sign in to comment.