This commit is contained in:
Bohdan Horbeshko 2022-04-01 12:35:54 -04:00
parent 2f38af12a2
commit 86cbbcb8bd
4 changed files with 16 additions and 14 deletions

View file

@ -33,6 +33,7 @@ const (
maxUint64 uint64 = (1 << 64) - 1
)
var sizeRegex = regexp.MustCompile("\\A([0-9]+) ?([KMGTPE]?B?)\\z")
// NewComponent starts a new component and wraps it in

View file

@ -11,6 +11,7 @@ import (
// StorageQuota is a value from config parsed to bytes number
var StorageQuota uint64
// CachedStorageSize estimates the storage size between full rescans
var CachedStorageSize uint64
var StorageLock = sync.Mutex{}