diff --git a/basic/main.go b/basic/main.go index ce15b8e..99072ca 100644 --- a/basic/main.go +++ b/basic/main.go @@ -23,6 +23,8 @@ func (r *Relay) Storage() relayer.Storage { return &postgresql.PostgresBackend{DatabaseURL: r.PostgresDatabase} } +func (r *Relay) OnInitialized() {} + func (r *Relay) Init() error { err := envconfig.Process("", r) if err != nil { diff --git a/rss-bridge/main.go b/rss-bridge/main.go index 5d2cc9b..ebad49f 100644 --- a/rss-bridge/main.go +++ b/rss-bridge/main.go @@ -29,6 +29,8 @@ func (relay *Relay) Name() string { return "relayer-rss-bridge" } +func (r *Relay) OnInitialized() {} + func (relay *Relay) Init() error { err := envconfig.Process("", relay) if err != nil { diff --git a/storage/postgresql/init.go b/storage/postgresql/init.go index 30d4e80..03432d3 100644 --- a/storage/postgresql/init.go +++ b/storage/postgresql/init.go @@ -4,6 +4,7 @@ import ( "github.com/fiatjaf/relayer" "github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx/reflectx" + _ "github.com/lib/pq" ) func (b *PostgresBackend) Init() error { diff --git a/whitelisted/main.go b/whitelisted/main.go index e21a5b0..6ec4660 100644 --- a/whitelisted/main.go +++ b/whitelisted/main.go @@ -19,6 +19,8 @@ func (r *Relay) Name() string { return "WhitelistedRelay" } +func (r *Relay) OnInitialized() {} + func (r *Relay) Storage() relayer.Storage { return &postgresql.PostgresBackend{DatabaseURL: r.PostgresDatabase} }