mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-06-06 04:59:14 +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}
|
return &postgresql.PostgresBackend{DatabaseURL: r.PostgresDatabase}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Relay) OnInitialized() {}
|
||||||
|
|
||||||
func (r *Relay) Init() error {
|
func (r *Relay) Init() error {
|
||||||
err := envconfig.Process("", r)
|
err := envconfig.Process("", r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,6 +29,8 @@ func (relay *Relay) Name() string {
|
|||||||
return "relayer-rss-bridge"
|
return "relayer-rss-bridge"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Relay) OnInitialized() {}
|
||||||
|
|
||||||
func (relay *Relay) Init() error {
|
func (relay *Relay) Init() error {
|
||||||
err := envconfig.Process("", relay)
|
err := envconfig.Process("", relay)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"github.com/fiatjaf/relayer"
|
"github.com/fiatjaf/relayer"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
"github.com/jmoiron/sqlx/reflectx"
|
"github.com/jmoiron/sqlx/reflectx"
|
||||||
|
_ "github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (b *PostgresBackend) Init() error {
|
func (b *PostgresBackend) Init() error {
|
||||||
|
@ -19,6 +19,8 @@ func (r *Relay) Name() string {
|
|||||||
return "WhitelistedRelay"
|
return "WhitelistedRelay"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Relay) OnInitialized() {}
|
||||||
|
|
||||||
func (r *Relay) Storage() relayer.Storage {
|
func (r *Relay) Storage() relayer.Storage {
|
||||||
return &postgresql.PostgresBackend{DatabaseURL: r.PostgresDatabase}
|
return &postgresql.PostgresBackend{DatabaseURL: r.PostgresDatabase}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user