Simplifications when decoding blocks from database to save some memory allocations.

This commit is contained in:
Sascha L. Teichmann
2015-06-21 22:47:06 +02:00
parent 5c239a7b60
commit 2d00eb9567
2 changed files with 11 additions and 14 deletions

View File

@ -45,10 +45,9 @@ func main() {
flag.Parse()
var err error
if !skipBaseLevel {
address := fmt.Sprintf("%s:%d", host, port)
if err = createBaseLevel(
if err := createBaseLevel(
address,
xMin, zMin, xMax, zMax,
transparent,
@ -59,7 +58,7 @@ func main() {
}
}
if !skipPyramid {
if err = createPyramid(outDir, numWorkers); err != nil {
if err := createPyramid(outDir, numWorkers); err != nil {
log.Fatalf("Creating pyramid tiles failed: %s", err)
}
}