Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: runtime error index out of range caused by nextCleanupBucket
- Adjusted cache size and TTL in `sieve_test.go` for more comprehensive testing - Implemented a constant `numberOfBuckets` and utilized it in `sieve.go` for cache storage - Updated `addToBucket` function to incorporate the new `numberOfBuckets` constant and `int8` `bucketID` type - Modified `bucketId` calculation in `addToBucket` function using `s.nextCleanupBucket` of type `float64` - Enhanced workload for testing in `sieve_test.go` from 256 to 10240 for rigorous testing
- Loading branch information