1
0
forked from MTSR/mapserver
mapserver/server/tilerendererjob/worker.go

16 lines
246 B
Go
Raw Normal View History

2019-01-24 17:56:37 +03:00
package tilerendererjob
import (
"mapserver/app"
"mapserver/coords"
)
func worker(ctx *app.App, coords <-chan *coords.TileCoords) {
for tc := range coords {
2019-01-24 22:55:20 +03:00
_, err := ctx.Tilerenderer.Render(tc, 5)
2019-01-24 17:56:37 +03:00
if err != nil {
panic(err)
}
}
}