Flush CollectionFactory every 15 minutes. #116

This commit is contained in:
Andrey Smirnov
2015-02-16 00:46:31 +03:00
parent 87cecac4ea
commit c737b8c544
2 changed files with 35 additions and 0 deletions
+2
View File
@@ -12,6 +12,8 @@ var context *ctx.AptlyContext
func Router(c *ctx.AptlyContext) http.Handler {
context = c
go cacheFlusher()
router := gin.Default()
router.Use(gin.ErrorLogger())