mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Massive code cleanup (#10913)
* Massive code cleanup * fix test issues * remove GetGenesis mock expectations * unused receiver * rename unused params Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -116,11 +116,10 @@ func main() {
|
||||
}
|
||||
|
||||
func printBucketStats(dbNameWithPath string) {
|
||||
ctx := context.Background()
|
||||
groupSize := uint64(128)
|
||||
doneC := make(chan bool)
|
||||
statsC := make(chan *bucketStat, groupSize)
|
||||
go readBucketStat(ctx, dbNameWithPath, statsC)
|
||||
go readBucketStat(dbNameWithPath, statsC)
|
||||
go printBucketStat(statsC, doneC)
|
||||
<-doneC
|
||||
}
|
||||
@@ -163,7 +162,7 @@ func printBucketContents(dbNameWithPath string, rowLimit uint64, bucketName stri
|
||||
<-doneC
|
||||
}
|
||||
|
||||
func readBucketStat(ctx context.Context, dbNameWithPath string, statsC chan<- *bucketStat) {
|
||||
func readBucketStat(dbNameWithPath string, statsC chan<- *bucketStat) {
|
||||
// open the raw database file. If the file is busy, then exit.
|
||||
db, openErr := bolt.Open(dbNameWithPath, 0600, &bolt.Options{Timeout: 1 * time.Second})
|
||||
if openErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user