mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix nil bug with filer.toml
This commit is contained in:
parent
ae4e654d2a
commit
2b4277ec18
|
@ -13,6 +13,10 @@ var (
|
||||||
|
|
||||||
func LoadConfiguration(config *viper.Viper) {
|
func LoadConfiguration(config *viper.Viper) {
|
||||||
|
|
||||||
|
if config == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
for _, store := range MessageQueues {
|
for _, store := range MessageQueues {
|
||||||
if config.GetBool(store.GetName() + ".enabled") {
|
if config.GetBool(store.GetName() + ".enabled") {
|
||||||
viperSub := config.Sub(store.GetName())
|
viperSub := config.Sub(store.GetName())
|
||||||
|
|
Loading…
Reference in a new issue