diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-12 02:28:13 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-12 02:28:13 -0800 |
| commit | cfb9342a15ce73c1e04c0e690cf87f65133bcf1b (patch) | |
| tree | 40e68e68d98472e8f942c04a501839a0135ef1c5 /weed/command/filer_replication.go | |
| parent | 38d516251eb080e56ee16747684e808a06cb6702 (diff) | |
| download | seaweedfs-cfb9342a15ce73c1e04c0e690cf87f65133bcf1b.tar.xz seaweedfs-cfb9342a15ce73c1e04c0e690cf87f65133bcf1b.zip | |
avoid concurrent map updates to viper
Diffstat (limited to 'weed/command/filer_replication.go')
| -rw-r--r-- | weed/command/filer_replication.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go index 40f2b570b..4f698e375 100644 --- a/weed/command/filer_replication.go +++ b/weed/command/filer_replication.go @@ -14,7 +14,6 @@ import ( _ "github.com/chrislusf/seaweedfs/weed/replication/sink/s3sink" "github.com/chrislusf/seaweedfs/weed/replication/sub" "github.com/chrislusf/seaweedfs/weed/util" - "github.com/spf13/viper" ) func init() { @@ -123,7 +122,7 @@ func runFilerReplicate(cmd *Command, args []string) bool { } -func validateOneEnabledInput(config *viper.Viper) { +func validateOneEnabledInput(config *util.ViperProxy) { enabledInput := "" for _, input := range sub.NotificationInputs { if config.GetBool("notification." + input.GetName() + ".enabled") { |
