mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-17 17:26:06 +01:00
refactor and fix strings.Split
This commit is contained in:
1 parent
1a4bf0dcb5
commit
67814a5c79
8 files changed
+11
-19
No files matched your search
@@ -76,8 +76,6 @@ var (
|
||||
isStartingWebDav = cmdServer.Flag.Bool("webdav", false, "whether to start WebDAV gateway")
|
||||
isStartingMqBroker = cmdServer.Flag.Bool("mq.broker", false, "whether to start message queue broker")
|
||||
|
||||
serverWhiteList []string
|
||||
|
||||
False = false
|
||||
)
|
||||
|
||||
@@ -248,9 +246,7 @@ func runServer(cmd *Command, args []string) bool {
|
||||
}
|
||||
filerOptions.defaultLevelDbDirectory = masterOptions.metaFolder
|
||||
|
||||
if *serverWhiteListOption != "" {
|
||||
serverWhiteList = strings.Split(*serverWhiteListOption, ",")
|
||||
}
|
||||
serverWhiteList := util.StringSplit(*serverWhiteListOption, ",")
|
||||
|
||||
if *isStartingFiler {
|
||||
go func() {
|
||||
|
||||
Reference in new issue
Block a user