Skip to content

Commit

Permalink
remove random jitter
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryFissionGames committed Jun 19, 2024
1 parent 7f03222 commit ae87af7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions extension/bindplaneextension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"errors"
"fmt"
"math/rand"
"sync"
"time"

Expand Down Expand Up @@ -103,10 +102,6 @@ func (b *bindplaneExtension) Dependencies() []component.ID {
func (b *bindplaneExtension) reportMetricsLoop() {
defer b.wg.Done()

// Add jitter to avoid potential resonance with other agents (random interval offset between 0 and 10 seconds)
jitter := time.Duration(rand.Float64() * 10 * float64(time.Second))
time.Sleep(jitter)

t := time.NewTicker(b.cfg.MeasurementsInterval)
defer t.Stop()

Expand Down

0 comments on commit ae87af7

Please sign in to comment.