From 5a990719a02f4fd33817a2188be17b3b50498b49 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 29 Dec 2022 11:43:54 -0500 Subject: builds? --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.go') 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) -- cgit v1.2.3