Skip to content

Commit 8d51c1c

Browse files
committed
Fix: stringintconv: conversion from int to string
1 parent ab8cd29 commit 8d51c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ func downloadTile(ctx context.Context, msgChan chan<- WSMessage, tile Tile, mapS
404404
}
405405

406406
// Construct the URL for the tile.
407-
subdomain := string('a' + rand.Intn(3))
407+
subdomain := []string{"a", "b", "c"}[rand.Intn(3)]
408408
url := strings.Replace(mapStyle, "{s}", subdomain, -1)
409409
url = strings.Replace(url, "{z}", fmt.Sprintf("%d", tile.Z), -1)
410410
url = strings.Replace(url, "{x}", fmt.Sprintf("%d", tile.X), -1)

0 commit comments

Comments
 (0)