aboutsummaryrefslogtreecommitdiff
path: root/weed/util
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-22 02:34:08 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-22 02:34:08 -0800
commit4f31c1bb9496bddd55dc4586769d1834599c975e (patch)
treec4e0f286db2582c310f3ae4e429df233519f47da /weed/util
parent6c4f32d1735d247fbf598663f8fe6ecc286dc099 (diff)
downloadseaweedfs-4f31c1bb9496bddd55dc4586769d1834599c975e.tar.xz
seaweedfs-4f31c1bb9496bddd55dc4586769d1834599c975e.zip
go fmt
Diffstat (limited to 'weed/util')
-rw-r--r--weed/util/config.go10
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())