mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-06-01 10:39:11 +02:00
fix: build failing
This commit is contained in:
parent
eee9952fac
commit
ec4cd51ebd
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user