Skip to content

Commit bee9b00

Browse files
committed
Fix: ineffective break statement
1 parent 8d51c1c commit bee9b00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,11 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload []
361361
ticker := time.NewTicker(time.Second / time.Duration(*rateLimit))
362362
defer ticker.Stop()
363363

364+
DownloadLoop:
364365
for _, tile := range tilesToDownload {
365366
select {
366367
case <-ctx.Done():
367-
break
368+
break DownloadLoop
368369
case <-ticker.C:
369370
tileChan <- tile
370371
}

0 commit comments

Comments
 (0)