From ec4cd51ebd69c89c0c9526b1c197c76c8c3d56ef Mon Sep 17 00:00:00 2001 From: 0x0ff <0x0ff@onsats.org> Date: Sun, 9 Oct 2022 15:35:34 +0200 Subject: [PATCH] fix: build failing --- basic/main.go | 2 ++ rss-bridge/main.go | 2 ++ storage/postgresql/init.go | 1 + whitelisted/main.go | 2 ++ 4 files changed, 7 insertions(+) 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} }