fix build

This commit is contained in:
Jared Wasinger 2025-04-25 15:49:53 +08:00
parent 31f3ddf684
commit caa52719b2

View file

@ -42,10 +42,10 @@ const (
) )
var ( var (
blockCacheMaxItems = 32768 // Maximum number of blocks to cache before throttling the download blockCacheMaxItems = 32768 // Maximum number of blocks to cache before throttling the download
blockCacheInitialItems = blockCacheMemory / (10 * 1024 * 1024) // Initial number of blocks to start fetching, before we know the sizes of the blocks blockCacheInitialItems = int(blockCacheMemory) / (10 * 1024 * 1024) // Initial number of blocks to start fetching, before we know the sizes of the blocks
blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones
blockCacheMemory uint64 = 2 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching blockCacheMemory uint64 = 2 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching
) )
var ( var (