| 75 | } |
| 76 | |
| 77 | type limitedBucketSet struct { |
| 78 | sz, maxTotal, maxBucket int |
| 79 | buckets []int |
| 80 | start, end, bucketWidth uint64 |
| 81 | } |
| 82 | |
| 83 | // newBucketSet creates a new bucket set for the given time range |
| 84 | // start and end are in nanoseconds |
nothing calls this directly
no outgoing calls
no test coverage detected