diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-22 02:34:08 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-22 02:34:08 -0800 |
| commit | 4f31c1bb9496bddd55dc4586769d1834599c975e (patch) | |
| tree | c4e0f286db2582c310f3ae4e429df233519f47da /weed/util | |
| parent | 6c4f32d1735d247fbf598663f8fe6ecc286dc099 (diff) | |
| download | seaweedfs-4f31c1bb9496bddd55dc4586769d1834599c975e.tar.xz seaweedfs-4f31c1bb9496bddd55dc4586769d1834599c975e.zip | |
go fmt
Diffstat (limited to 'weed/util')
| -rw-r--r-- | weed/util/config.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/util/config.go b/weed/util/config.go index 47f433028..94e621e34 100644 --- a/weed/util/config.go +++ b/weed/util/config.go @@ -19,11 +19,11 @@ type Configuration interface { func LoadConfiguration(configFileName string, required bool) (loaded bool) { // find a filer store - viper.SetConfigName(configFileName) // name of config file (without extension) - viper.AddConfigPath(".") // optionally look for config in the working directory - viper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths - viper.AddConfigPath("/usr/local/etc/seaweedfs/") // search path for bsd-style config directory in - viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file in + viper.SetConfigName(configFileName) // name of config file (without extension) + viper.AddConfigPath(".") // optionally look for config in the working directory + viper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths + viper.AddConfigPath("/usr/local/etc/seaweedfs/") // search path for bsd-style config directory in + viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file in glog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed()) |
