Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying-peng committed Jan 29, 2022
1 parent a572cb7 commit cbccf71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ const (

// semaphoreWeight is the weight of each semaphore request.
semaphoreWeight = int64(1)

blockLeftShift = 20
)

var (
Expand Down Expand Up @@ -182,7 +184,7 @@ func defaultBadgerOptions(
// filters will be immediately discarded from the cache).
opts.LoadBloomsOnOpen = false

opts.BlockSize = 1 << 20 // 1MB
opts.BlockSize = 1 << blockLeftShift // 1MB

opts.NumCompactors = 2

Expand Down

0 comments on commit cbccf71

Please sign in to comment.