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:
Kyle Carberry
2023-03-07 08:25:04 -06:00
committed by GitHub
parent 66a6b590a1
commit 87ed7a7dba
6 changed files with 30 additions and 12 deletions

View File

@ -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)