fix nil bug with filer.toml

This commit is contained in:
Chris Lu 2018-08-22 23:54:00 -07:00
parent ae4e654d2a
commit 2b4277ec18

View file

@ -13,6 +13,10 @@ var (
func LoadConfiguration(config *viper.Viper) {
if config == nil {
return
}
for _, store := range MessageQueues {
if config.GetBool(store.GetName() + ".enabled") {
viperSub := config.Sub(store.GetName())