From 60d2f1557d4b871fb8b19cab8206d7b725c12845 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 10 Oct 2018 23:19:54 -0700 Subject: [PATCH] refactor func name --- weed/command/filer.go | 4 ++-- weed/command/server.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/command/filer.go b/weed/command/filer.go index 30a8b6412..75809008d 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -74,12 +74,12 @@ var cmdFiler = &Command{ func runFiler(cmd *Command, args []string) bool { - f.start() + f.startFiler() return true } -func (fo *FilerOptions) start() { +func (fo *FilerOptions) startFiler() { defaultMux := http.NewServeMux() publicVolumeMux := defaultMux diff --git a/weed/command/server.go b/weed/command/server.go index 842a32376..7cd245b94 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -164,7 +164,7 @@ func runServer(cmd *Command, args []string) bool { go func() { time.Sleep(1 * time.Second) - filerOptions.start() + filerOptions.startFiler() }() }