Skip to content

Commit

Permalink
usm: telemetry: Remove redundant argument from function
Browse files Browse the repository at this point in the history
The function does not need configuration object, hence we can simply remove it
  • Loading branch information
guyarb committed Feb 10, 2025
1 parent 8cba5f2 commit 004bd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/system-probe/modules/network_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func createNetworkTracerModule(cfg *sysconfigtypes.Config, deps module.FactoryDe

done := make(chan struct{})
if err == nil {
startTelemetryReporter(cfg, done)
startTelemetryReporter(done)
}

return &networkTracer{tracer: t, done: done}, err
Expand Down Expand Up @@ -363,7 +363,7 @@ func writeConnections(w http.ResponseWriter, marshaler marshal.Marshaler, cs *ne
log.Tracef("/connections: %d connections", len(cs.Conns))
}

func startTelemetryReporter(_ *sysconfigtypes.Config, done <-chan struct{}) {
func startTelemetryReporter(done <-chan struct{}) {
telemetry.SetStatsdClient(statsd.Client)
ticker := time.NewTicker(30 * time.Second)
go func() {
Expand Down

0 comments on commit 004bd98

Please sign in to comment.