Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Nov 14, 2024
1 parent bb5b09f commit bda779a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions br/pkg/lightning/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,11 @@ func (be Backend) CheckDiskQuota(quota int64) (
) {
sizes := be.abstract.EngineFileSizes()
slices.SortFunc(sizes, func(i, j EngineFileSize) int {
if i.IsImporting != j.IsImporting && i.IsImporting {
return -1
if i.IsImporting != j.IsImporting {
if i.IsImporting {
return -1
}
return 1
}
return cmp.Compare(i.DiskSize+i.MemSize, j.DiskSize+j.MemSize)
})
Expand Down

0 comments on commit bda779a

Please sign in to comment.