diff options
| author | chrislu <chris.lu@gmail.com> | 2024-12-19 19:23:27 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-12-19 19:25:06 -0800 |
| commit | ec155022e7e8d0f30bfcfa169248ec3ecc40e960 (patch) | |
| tree | 613416a40b45bd67bb9baf87be9843798a487914 /weed/util/config.go | |
| parent | a1a76ccb8c3316baf269aa856ba268d53e0943ba (diff) | |
| download | seaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.tar.xz seaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.zip | |
"golang.org/x/exp/slices" => "slices" and go fmt
Diffstat (limited to 'weed/util/config.go')
| -rw-r--r-- | weed/util/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/config.go b/weed/util/config.go index 7ac765ff5..e5b32d512 100644 --- a/weed/util/config.go +++ b/weed/util/config.go @@ -11,7 +11,7 @@ import ( var ( ConfigurationFileDirectory DirectoryValueType - loadSecurityConfigOnce sync.Once + loadSecurityConfigOnce sync.Once ) type DirectoryValueType string @@ -32,7 +32,7 @@ type Configuration interface { SetDefault(key string, value interface{}) } -func LoadSecurityConfiguration(){ +func LoadSecurityConfiguration() { loadSecurityConfigOnce.Do(func() { LoadConfiguration("security", false) }) |
