From bee9b008fd964b16919e52c78f2083b9fd4018c9 Mon Sep 17 00:00:00 2001 From: Nils Date: Wed, 27 Aug 2025 11:04:18 +0200 Subject: [PATCH] Fix: ineffective break statement --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 3003d1f..00ef921 100644 --- a/main.go +++ b/main.go @@ -361,10 +361,11 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload [] ticker := time.NewTicker(time.Second / time.Duration(*rateLimit)) defer ticker.Stop() + DownloadLoop: for _, tile := range tilesToDownload { select { case <-ctx.Done(): - break + break DownloadLoop case <-ticker.C: tileChan <- tile }