aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-29 16:43:54 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-29 16:43:54 +0000
commit5a990719a02f4fd33817a2188be17b3b50498b49 (patch)
tree24c4c67c03a056004b9145f62418fae0978196fe /main.go
parent2408a50c46afad193e89f9381eb999cb5e8facab (diff)
downloadcommunique-5a990719a02f4fd33817a2188be17b3b50498b49.tar.gz
builds?
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)