From bbfea6fc9e42515981d9529a6de9cd9f7c6cde4c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 22 Feb 2024 03:27:48 -0500 Subject: [PATCH] fix: need to update config management in storage pkg --- storage/storage.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/storage.go b/storage/storage.go index f399c92..c36c89e 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -7,6 +7,8 @@ import ( "io" "net/http" + "git.lumeweb.com/LumeWeb/portal/config" + "go.uber.org/fx" "go.sia.tech/renterd/api" @@ -17,7 +19,6 @@ import ( "git.lumeweb.com/LumeWeb/portal/bao" - "github.com/spf13/viper" "gorm.io/gorm" "git.lumeweb.com/LumeWeb/portal/renter" @@ -54,7 +55,7 @@ type StorageService interface { } type StorageServiceDefault struct { - config *viper.Viper + config *config.Manager db *gorm.DB renter *renter.RenterDefault logger *zap.Logger @@ -63,7 +64,7 @@ type StorageServiceDefault struct { type StorageServiceParams struct { fx.In - Config *viper.Viper + Config *config.Manager Db *gorm.DB Renter *renter.RenterDefault Logger *zap.Logger