fix: need to update config management in storage pkg
This commit is contained in:
parent
a6218e9b7c
commit
bbfea6fc9e
|
@ -7,6 +7,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"git.lumeweb.com/LumeWeb/portal/config"
|
||||||
|
|
||||||
"go.uber.org/fx"
|
"go.uber.org/fx"
|
||||||
|
|
||||||
"go.sia.tech/renterd/api"
|
"go.sia.tech/renterd/api"
|
||||||
|
@ -17,7 +19,6 @@ import (
|
||||||
|
|
||||||
"git.lumeweb.com/LumeWeb/portal/bao"
|
"git.lumeweb.com/LumeWeb/portal/bao"
|
||||||
|
|
||||||
"github.com/spf13/viper"
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|
||||||
"git.lumeweb.com/LumeWeb/portal/renter"
|
"git.lumeweb.com/LumeWeb/portal/renter"
|
||||||
|
@ -54,7 +55,7 @@ type StorageService interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
type StorageServiceDefault struct {
|
type StorageServiceDefault struct {
|
||||||
config *viper.Viper
|
config *config.Manager
|
||||||
db *gorm.DB
|
db *gorm.DB
|
||||||
renter *renter.RenterDefault
|
renter *renter.RenterDefault
|
||||||
logger *zap.Logger
|
logger *zap.Logger
|
||||||
|
@ -63,7 +64,7 @@ type StorageServiceDefault struct {
|
||||||
|
|
||||||
type StorageServiceParams struct {
|
type StorageServiceParams struct {
|
||||||
fx.In
|
fx.In
|
||||||
Config *viper.Viper
|
Config *config.Manager
|
||||||
Db *gorm.DB
|
Db *gorm.DB
|
||||||
Renter *renter.RenterDefault
|
Renter *renter.RenterDefault
|
||||||
Logger *zap.Logger
|
Logger *zap.Logger
|
||||||
|
|
Loading…
Reference in New Issue