Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hedge: use auto-resizing histograms (#484)
The previous code used a fixed-size histogram with an upper bound of 10_000 ms (10s). This meant that the `Hedge` middleware would display errors when used with services that take longer than 10s to complete a response. Instead, use a constructor that produces an auto-resizing histogram. In the future, if the auto-resizing behavior is an issue, Tower could add a second constructor for the Hedge middleware that allows specifying bounds, but for now this change is transparent and avoids spurious errors.
- Loading branch information