diff options
-rw-r--r-- | system/db/init.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/system/db/init.go b/system/db/init.go index 5806622..399a1e2 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -71,9 +71,11 @@ func Init() { } // sort all content into type_sorted buckets - for t := range content.Types { - go SortContent(t + "_sorted") - } + go func() { + for t := range content.Types { + SortContent(t + "_sorted") + } + }() } |