diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-29 16:43:54 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-29 16:43:54 +0000 |
commit | 5a990719a02f4fd33817a2188be17b3b50498b49 (patch) | |
tree | 24c4c67c03a056004b9145f62418fae0978196fe /main.go | |
parent | 2408a50c46afad193e89f9381eb999cb5e8facab (diff) | |
download | communique-5a990719a02f4fd33817a2188be17b3b50498b49.tar.gz |
builds?
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |