Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion expire/tilelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (tl *TileList) addCoord(long, lat float64) {
// fraction of a tile that is added as a padding around a single node
const tilePadding = 0.2
tl.mu.Lock()
defer tl.mu.Unlock()
tileX, tileY := tileCoord(long, lat, tl.maxZoom)
if tileX < 0 {
return
Expand All @@ -111,7 +112,6 @@ func (tl *TileList) addCoord(long, lat float64) {
tl.tiles[tl.maxZoom][tileKey{x, y}] = struct{}{}
}
}
tl.mu.Unlock()
}

// expireLine expires all tiles that are intersected by the line segments
Expand Down