[#1523] neofs-node: Refactor configuration
1. Move compression parameters to the `shard` section. 2. Allow to use multiple sub-storage components in the blobstor. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
13cdbde2e2
commit
26b4a258e0
37 changed files with 595 additions and 419 deletions
|
@ -31,6 +31,10 @@ var ErrInitBlobovniczas = errors.New("failure on blobovnicza initialization stag
|
|||
func (b *BlobStor) Init() error {
|
||||
b.log.Debug("initializing...")
|
||||
|
||||
if err := b.CConfig.Init(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for i := range b.storage {
|
||||
err := b.storage[i].Storage.Init()
|
||||
if err != nil {
|
||||
|
@ -55,5 +59,10 @@ func (b *BlobStor) Close() error {
|
|||
continue
|
||||
}
|
||||
}
|
||||
|
||||
err := b.CConfig.Close()
|
||||
if firstErr == nil {
|
||||
firstErr = err
|
||||
}
|
||||
return firstErr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue