aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index aa92f9f..064ba93 100644
--- a/main.go
+++ b/main.go
@@ -6,6 +6,7 @@ import (
"git.capotej.com/capotej/communique/cgi"
"git.capotej.com/capotej/communique/config"
"git.capotej.com/capotej/communique/http"
+ "git.capotej.com/capotej/communique/models"
"git.capotej.com/capotej/communique/registry"
"github.com/BurntSushi/toml"
"github.com/dgraph-io/badger/v3"
@@ -38,6 +39,9 @@ func main() {
}
defer db.Close()
+ // Persister
+ persister := models.NewPersister(log, db)
+
// Registry
registry := registry.NewRegistry(cfg, db)
@@ -45,7 +49,7 @@ func main() {
var mainWg sync.WaitGroup
// // Internal CGI Servers
- cgiServers := cgi.NewServers(log, db)
+ cgiServers := cgi.NewServers(log, persister)
mainWg.Add(1)
go cgiServers.Start(cfg)