[#1778] neofs-node: Panic if config type is invalid

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-09-12 16:51:13 +03:00 committed by fyrchik
parent 60b2930417
commit d25ec52459

View file

@ -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()))
}
}