Use new gofumpt (#21613)

Update tinylib. Should fix CI.

`gofumpt -w .&&go generate ./...`
This commit is contained in:
Klaus Post
2025-09-28 22:59:21 +02:00
committed by GitHub
parent 456d9462e5
commit b8631cf531
171 changed files with 881 additions and 899 deletions

View File

@@ -94,18 +94,18 @@ func availableMemory() (available uint64) {
if limit > 0 {
// A valid value is found, return its 90%
available = (limit * 9) / 10
return
return available
}
} // for all other platforms limits are based on virtual memory.
memStats, err := mem.VirtualMemory()
if err != nil {
return
return available
}
// A valid value is available return its 90%
available = (memStats.Available * 9) / 10
return
return available
}
func (t *apiConfig) init(cfg api.Config, setDriveCounts []int, legacy bool) {