aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-10 23:19:54 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-10 23:19:54 -0700
commit60d2f1557d4b871fb8b19cab8206d7b725c12845 (patch)
treeedc74c40916e5dc92b052cd46a13133a6d554c64
parentb7763c1cb6ce8a82ae7d77c47bfb94af07982946 (diff)
downloadseaweedfs-60d2f1557d4b871fb8b19cab8206d7b725c12845.tar.xz
seaweedfs-60d2f1557d4b871fb8b19cab8206d7b725c12845.zip
refactor func name
-rw-r--r--weed/command/filer.go4
-rw-r--r--weed/command/server.go2
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()
}()
}