mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: use nil map on agent stats to check if report interval should be returned (#6479)
See https://github.com/coder/coder/actions/runs/4350638262/jobs/7601537088
This commit is contained in:
@ -399,7 +399,7 @@ func (c *Client) ReportStats(ctx context.Context, log slog.Logger, statsChan <-c
|
||||
}
|
||||
|
||||
// Send an empty stat to get the interval.
|
||||
postStat(&Stats{ConnectionsByProto: map[string]int64{}})
|
||||
postStat(&Stats{})
|
||||
|
||||
go func() {
|
||||
defer close(exited)
|
||||
|
Reference in New Issue
Block a user