From 8e0665aa12445a8fd2a3549fab3690f4ba1d3687 Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Mon, 2 Sep 2013 13:09:26 +0200 Subject: [PATCH] rename internal environment switches --- cache/config.go | 2 +- reader/reader.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cache/config.go b/cache/config.go index cf9ec4d..fbce55e 100644 --- a/cache/config.go +++ b/cache/config.go @@ -94,7 +94,7 @@ func init() { panic(err) } - cacheConfFile := os.Getenv("GOPOSM_CACHE_CONFIG") + cacheConfFile := os.Getenv("IMPOSM_CACHE_CONFIG") if cacheConfFile != "" { data, err := ioutil.ReadFile(cacheConfFile) if err != nil { diff --git a/reader/reader.go b/reader/reader.go index 16d6ce8..f8bd109 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -20,13 +20,13 @@ var skipCoords, skipNodes, skipWays bool var nParser, nWays, nRels, nNodes, nCoords int64 func init() { - if os.Getenv("GOPOSM_SKIP_COORDS") != "" { + if os.Getenv("IMPOSM_SKIP_COORDS") != "" { skipCoords = true } - if os.Getenv("GOPOSM_SKIP_NODES") != "" { + if os.Getenv("IMPOSM_SKIP_NODES") != "" { skipNodes = true } - if os.Getenv("GOPOSM_SKIP_WAYS") != "" { + if os.Getenv("IMPOSM_SKIP_WAYS") != "" { skipWays = true } nParser = int64(runtime.NumCPU()) @@ -34,7 +34,7 @@ func init() { nRels = int64(runtime.NumCPU()) nNodes = int64(runtime.NumCPU()) nCoords = int64(runtime.NumCPU()) - if procConf := os.Getenv("GOPOSM_READ_PROCS"); procConf != "" { + if procConf := os.Getenv("IMPOSM_READ_PROCS"); procConf != "" { parts := strings.Split(procConf, ":") nParser, _ = strconv.ParseInt(parts[0], 10, 32) nRels, _ = strconv.ParseInt(parts[1], 10, 32)