refactoring: more refactoring to break import cycles
This commit is contained in:
parent
3b3a50e419
commit
0ee96599f1
|
@ -216,11 +216,9 @@ func (s *StorageService) DownloadBytesByHash(hash *encoding.Multihash) ([]byte,
|
|||
types.StorageLocationTypeFull,
|
||||
types.StorageLocationTypeFile,
|
||||
},
|
||||
ServiceParams: ServiceParams{
|
||||
Logger: s.logger,
|
||||
Config: s.config,
|
||||
Db: s.db,
|
||||
},
|
||||
})
|
||||
err := dlUriProvider.Start()
|
||||
if err != nil {
|
||||
|
|
|
@ -3,10 +3,11 @@ package provider
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/config"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/encoding"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/service"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/storage"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/types"
|
||||
bolt "go.etcd.io/bbolt"
|
||||
"go.uber.org/zap"
|
||||
"sync"
|
||||
"time"
|
||||
|
@ -195,5 +196,7 @@ type StorageLocationProviderParams struct {
|
|||
Services storage.StorageLocationProviderServices
|
||||
Hash *encoding.Multihash
|
||||
LocationTypes []types.StorageLocationType
|
||||
service.ServiceParams
|
||||
Logger *zap.Logger
|
||||
Config *config.NodeConfig
|
||||
Db *bolt.DB
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue