fix: build failing

This commit is contained in:
0x0ff 2022-10-09 15:35:34 +02:00 committed by fiatjaf
parent eee9952fac
commit ec4cd51ebd
4 changed files with 7 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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}
}