forked from TrueCloudLab/frostfs-node
[#1778] neofs-node: Panic if config type is invalid
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
60b2930417
commit
d25ec52459
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
@ -470,6 +471,8 @@ func initShardOptions(c *cfg) {
|
|||
return true
|
||||
},
|
||||
})
|
||||
default:
|
||||
panic(fmt.Errorf("invalid storage type: %s", storages[i].Type()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue