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

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
remotes/fyrchik/regions
Evgenii Stratonikov 2022-09-12 16:51:13 +03:00 committed by fyrchik
parent 60b2930417
commit d25ec52459
1 changed files with 3 additions and 0 deletions

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