Skip to content

Commit

Permalink
Fix waitgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Jan 6, 2024
1 parent 1e2f3bc commit 07c191f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pmtiles/makesync.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func Makesync(logger *log.Logger, cli_version string, file string, block_size_kb
// workers
for i := 0; i < runtime.GOMAXPROCS(0); i++ {
errs.Go(func() error {
wg.Add(1)
hasher := fnv.New64a()
for block := range tasks {
r, err := bucket.NewRangeReader(ctx, key, int64(header.TileDataOffset+block.Offset), int64(block.Length))
Expand Down

0 comments on commit 07c191f

Please sign in to comment.