mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-06-28 22:26:47 +02:00
Simplifications when decoding blocks from database to save some memory allocations.
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user