mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
feat: add support for postgres
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"github.com/caddyserver/certmagic"
|
||||
"github.com/hashicorp/go-hclog"
|
||||
"github.com/jsiebens/ionscale/internal/bind"
|
||||
"github.com/jsiebens/ionscale/internal/broker"
|
||||
"github.com/jsiebens/ionscale/internal/config"
|
||||
"github.com/jsiebens/ionscale/internal/database"
|
||||
"github.com/jsiebens/ionscale/internal/domain"
|
||||
@@ -42,12 +41,11 @@ func Start(c *config.Config) error {
|
||||
return err
|
||||
}
|
||||
|
||||
_, repository, err := database.OpenDB(&c.Database, logger)
|
||||
_, repository, brokers, err := database.OpenDB(&c.Database, logger)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
brokers := broker.NewBrokerPool()
|
||||
offlineTimers := handlers.NewOfflineTimers(repository, brokers)
|
||||
reaper := handlers.NewReaper(brokers, repository)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user