diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-05 01:30:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-05 01:30:24 -0700 |
| commit | ede876cfdb0116557dd197a7951957dab6745c24 (patch) | |
| tree | 50bab90cbf757bb0ad6b3239ed938dfd8d55874e /weed/shell/command_fs_meta_notify.go | |
| parent | b9e138713c8e2f53cf96132b5ff077ded67c5c20 (diff) | |
| download | seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.tar.xz seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.zip | |
periodic scripts exeuction from leader master
Diffstat (limited to 'weed/shell/command_fs_meta_notify.go')
| -rw-r--r-- | weed/shell/command_fs_meta_notify.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/shell/command_fs_meta_notify.go b/weed/shell/command_fs_meta_notify.go index ca4d8da5b..13b272fbf 100644 --- a/weed/shell/command_fs_meta_notify.go +++ b/weed/shell/command_fs_meta_notify.go @@ -8,12 +8,12 @@ import ( "github.com/chrislusf/seaweedfs/weed/filer2" "github.com/chrislusf/seaweedfs/weed/notification" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" - weed_server "github.com/chrislusf/seaweedfs/weed/server" + "github.com/chrislusf/seaweedfs/weed/util" "github.com/spf13/viper" ) func init() { - commands = append(commands, &commandFsMetaNotify{}) + Commands = append(Commands, &commandFsMetaNotify{}) } type commandFsMetaNotify struct { @@ -33,14 +33,14 @@ func (c *commandFsMetaNotify) Help() string { ` } -func (c *commandFsMetaNotify) Do(args []string, commandEnv *commandEnv, writer io.Writer) (err error) { +func (c *commandFsMetaNotify) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { filerServer, filerPort, path, err := commandEnv.parseUrl(findInputDirectory(args)) if err != nil { return err } - weed_server.LoadConfiguration("notification", true) + util.LoadConfiguration("notification", true) v := viper.GetViper() notification.LoadConfiguration(v.Sub("notification")) |
