Private
Public Access
1
0

style: format Go code with gofumpt
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Apply consistent formatting to Go source files using gofumpt
as required by pre-commit guidelines.
This commit is contained in:
2025-08-03 16:06:59 -07:00
parent 3e6a0f9e63
commit 2dfc355f7c
9 changed files with 21 additions and 25 deletions

View File

@@ -24,15 +24,16 @@ type ServerTotals map[string]uint64
func (s ServerQueries) Len() int {
return len(s)
}
func (s ServerQueries) Swap(i, j int) {
s[i], s[j] = s[j], s[i]
}
func (s ServerQueries) Less(i, j int) bool {
return s[i].Count > s[j].Count
}
func (d *ClickHouse) ServerAnswerCounts(ctx context.Context, serverIP string, days int) (ServerQueries, error) {
ctx, span := tracing.Tracer().Start(ctx, "ServerAnswerCounts")
defer span.End()