forked from iarv/offline-map-tile-downloader
Fix: fmt
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -18,6 +18,14 @@ jobs:
|
||||
- name: 🔧 Setup go
|
||||
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
|
||||
- name: 🌡️ Lint
|
||||
uses: golangci/golangci-lint-action@v8
|
||||
|
||||
2
main.go
2
main.go
@@ -361,7 +361,7 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload []
|
||||
ticker := time.NewTicker(time.Second / time.Duration(*rateLimit))
|
||||
defer ticker.Stop()
|
||||
|
||||
DownloadLoop:
|
||||
DownloadLoop:
|
||||
for _, tile := range tilesToDownload {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
||||
Reference in New Issue
Block a user