refactor: add StorageProtocol to S5ProtocolResult
This commit is contained in:
parent
6f3f6015fe
commit
b52383b123
|
@ -55,6 +55,7 @@ type S5ProtocolResult struct {
|
|||
S5Protocol *S5Protocol
|
||||
S5NodeConfig *s5config.NodeConfig
|
||||
Db *bolt.DB
|
||||
StorageProtocol storage.StorageProtocol
|
||||
}
|
||||
|
||||
type S5ProviderStoreParams struct {
|
||||
|
@ -96,6 +97,7 @@ func NewS5Protocol(
|
|||
S5Protocol: proto,
|
||||
S5NodeConfig: cfg,
|
||||
Db: cfg.DB,
|
||||
StorageProtocol: GetStorageProtocol(proto),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue