refactor(backend): refactoring management of go routines in backend

This commit is contained in:
Torkel Ödegaard
2016-09-28 21:06:00 +02:00
parent bc634f20d5
commit 71e2c6f6ef
10 changed files with 119 additions and 123 deletions
+2 -6
View File
@@ -120,9 +120,8 @@ var (
IsWindows bool
// PhantomJs Rendering
ImagesDir string
PhantomDir string
RenderedImageTTLDays int
ImagesDir string
PhantomDir string
// for logging purposes
configFiles []string
@@ -540,9 +539,6 @@ func NewConfigContext(args *CommandLineArgs) error {
ImagesDir = filepath.Join(DataPath, "png")
PhantomDir = filepath.Join(HomePath, "vendor/phantomjs")
tmpFilesSection := Cfg.Section("tmp.files")
RenderedImageTTLDays = tmpFilesSection.Key("rendered_image_ttl_days").MustInt(14)
analytics := Cfg.Section("analytics")
ReportingEnabled = analytics.Key("reporting_enabled").MustBool(true)
CheckForUpdates = analytics.Key("check_for_updates").MustBool(true)