diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-08-22 23:54:00 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-08-22 23:54:00 -0700 |
| commit | 2b4277ec18f8b09e39e5dc17866e42872cc414e0 (patch) | |
| tree | ee10f794b839ca9fc3463b3c90dd1c3b83b4c8bf | |
| parent | ae4e654d2af59d4e750f58d5fc2c225ea018787f (diff) | |
| download | seaweedfs-2b4277ec18f8b09e39e5dc17866e42872cc414e0.tar.xz seaweedfs-2b4277ec18f8b09e39e5dc17866e42872cc414e0.zip | |
fix nil bug with filer.toml
| -rw-r--r-- | weed/msgqueue/configuration.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/msgqueue/configuration.go b/weed/msgqueue/configuration.go index d053f892f..769c11835 100644 --- a/weed/msgqueue/configuration.go +++ b/weed/msgqueue/configuration.go @@ -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()) |
