diff options
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) |