summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/db/init.go')
-rw-r--r--system/db/init.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/db/init.go b/system/db/init.go
index 423c265..0c3c887 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -81,11 +81,11 @@ func Init() {
log.Fatalln("Coudn't initialize db with buckets.", err)
}
- go func() {
- for t := range content.Types {
+ go func(types map[string]func() interface{}) {
+ for t := range types {
SortContent(t)
}
- }()
+ }(content.Types)
}