Skip to content

Commit

Permalink
Merge branch 'main' into chore/rename-route-get-log-to-logs
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Maireaux <maxence@maireaux.fr>
  • Loading branch information
flemzord authored Jan 26, 2023
2 parents e45f139 + cdd925b commit cd9ff2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/ledger/ledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ func runOnLedger(f func(l *ledger.Ledger), ledgerOptions ...ledger.LedgerOption)
return err
}
cache, err := ristretto.NewCache(&ristretto.Config{
NumCounters: 1e7, // number of keys to track frequency of (10M).
MaxCost: 1 << 8, // maximum cost of cache (100MB).
BufferItems: 64, // number of keys per Get buffer.

NumCounters: 1e7, // number of keys to track frequency of (10M).
MaxCost: 100, // maximum cost of cache.
BufferItems: 64, // number of keys per Get buffer.
})
if err != nil {
panic(errors.Wrap(err, "creating ledger cache"))
Expand Down

0 comments on commit cd9ff2f

Please sign in to comment.