Skip to content

Commit

Permalink
fix(circuitbreaker): remove unnecessary log message in preflight func…
Browse files Browse the repository at this point in the history
…tion

fix(ratelimit_replication_test): correct index to call Ratelimit on correct node
  • Loading branch information
chronark committed Sep 20, 2024
1 parent cf97625 commit b5e5529
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion apps/agent/pkg/circuitbreaker/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ func (cb *CB[Res]) preflight(ctx context.Context) error {
now := cb.config.clock.Now()

if now.After(cb.resetCountersAt) {
cb.logger.Info().Msg("resetting circuit breaker")
cb.requests = 0
cb.successes = 0
cb.failures = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestSync(t *testing.T) {
}

// Figure out who is the origin
_, err := nodes[1].srv.Ratelimit(ctx, req)
_, err := nodes[0].srv.Ratelimit(ctx, req)
require.NoError(t, err)

time.Sleep(5 * time.Second)
Expand Down

0 comments on commit b5e5529

Please sign in to comment.