From 5d1be98ae56b117712c975756bfbd7640bffb537 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Sun, 8 May 2016 23:27:11 +0200 Subject: [PATCH] Cosmetics. --- cmd/mtwebmapper/tilesupdater.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mtwebmapper/tilesupdater.go b/cmd/mtwebmapper/tilesupdater.go index cc44edb..a4f9d2f 100644 --- a/cmd/mtwebmapper/tilesupdater.go +++ b/cmd/mtwebmapper/tilesupdater.go @@ -179,6 +179,8 @@ func (tu *tileUpdater) doUpdates() { bth := common.NewBaseTileHash() + baseDir := filepath.Join(tu.mapDir, "8") + for { tu.cond.L.Lock() for len(tu.changes) == 0 { @@ -188,8 +190,6 @@ func (tu *tileUpdater) doUpdates() { tu.changes = map[xz]struct{}{} tu.cond.L.Unlock() - baseDir := filepath.Join(tu.mapDir, "8") - jobs := make(chan *xzc) var done sync.WaitGroup