chore: fix parse typo for network telemetry (#13971)

This commit is contained in:
Dean Sheather
2024-07-23 03:14:37 +10:00
committed by GitHub
parent 0a71c34d46
commit d2b035312e
5 changed files with 17 additions and 9 deletions

View File

@ -261,6 +261,9 @@ func NewNetworkTelemetryBatcher(clk quartz.Clock, frequency time.Duration, maxSi
closed: make(chan struct{}),
done: make(chan struct{}),
}
if b.batchFn == nil {
b.batchFn = func(batch []*proto.TelemetryEvent) {}
}
b.start()
return b
}