mirror of
https://github.com/Cyclenerd/offline-map-tile-downloader.git
synced 2026-06-01 20:34:55 +02:00
Fix: fmt
This commit is contained in:
@@ -18,6 +18,14 @@ jobs:
|
|||||||
- name: 🔧 Setup go
|
- name: 🔧 Setup go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
|
||||||
|
- name: 🧝♀️ Check formatting
|
||||||
|
run: |
|
||||||
|
if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then
|
||||||
|
echo "Go files are not formatted:"
|
||||||
|
gofmt -d .
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# https://github.com/marketplace/actions/run-golangci-lint
|
# https://github.com/marketplace/actions/run-golangci-lint
|
||||||
- name: 🌡️ Lint
|
- name: 🌡️ Lint
|
||||||
uses: golangci/golangci-lint-action@v8
|
uses: golangci/golangci-lint-action@v8
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload []
|
|||||||
ticker := time.NewTicker(time.Second / time.Duration(*rateLimit))
|
ticker := time.NewTicker(time.Second / time.Duration(*rateLimit))
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
DownloadLoop:
|
DownloadLoop:
|
||||||
for _, tile := range tilesToDownload {
|
for _, tile := range tilesToDownload {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|||||||
Reference in New Issue
Block a user