From f827ada811bb807a9cf9e3db702a01e6f8e4ae3b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 19 Aug 2018 15:17:55 -0700 Subject: merge notification config with filer.toml --- weed/filer2/postgres/postgres_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'weed/filer2/postgres/postgres_store.go') diff --git a/weed/filer2/postgres/postgres_store.go b/weed/filer2/postgres/postgres_store.go index f5904ab21..8836e2be7 100644 --- a/weed/filer2/postgres/postgres_store.go +++ b/weed/filer2/postgres/postgres_store.go @@ -7,6 +7,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/filer2" "github.com/chrislusf/seaweedfs/weed/filer2/abstract_sql" _ "github.com/lib/pq" + "github.com/chrislusf/seaweedfs/weed/util" ) const ( @@ -25,7 +26,7 @@ func (store *PostgresStore) GetName() string { return "postgres" } -func (store *PostgresStore) Initialize(configuration filer2.Configuration) (err error) { +func (store *PostgresStore) Initialize(configuration util.Configuration) (err error) { return store.initialize( configuration.GetString("username"), configuration.GetString("password"), -- cgit v1.2.3