Browse Source

Move code

Vova Tkach 5 years ago
parent
commit
21e5057dac
1 changed files with 4 additions and 4 deletions
  1. 4 4
      main.go

+ 4 - 4
main.go

@@ -70,6 +70,10 @@ func main() {
 	// Image processing
 	wImageGen := image_generator(consts.ParamWwwDir)
 
+	// Xml generation
+	xml_cl_ch, xml_cl_stop := xml_start(consts.ParamWwwDir, mpool)
+	defer xml_stop(xml_cl_ch, xml_cl_stop)
+
 	// Init mounted resources
 	res := resource.New()
 	assets.PopulateResources(res)
@@ -80,10 +84,6 @@ func main() {
 	// Init modules
 	mods := modules.New()
 
-	// Xml generation
-	xml_cl_ch, xml_cl_stop := xml_start(consts.ParamWwwDir, mpool)
-	defer xml_stop(xml_cl_ch, xml_cl_stop)
-
 	// SMTP sender
 	smtp_cl_ch, smtp_cl_stop := smtp_start(consts.ParamWwwDir, mpool)
 	defer smtp_stop(smtp_cl_ch, smtp_cl_stop)