From 77626666c5cdff4aa37b9e1ea4c451429ff0a415 Mon Sep 17 00:00:00 2001 From: Varun Upadhyay Date: Thu, 28 Dec 2023 20:25:43 -0800 Subject: [PATCH] Minor cleanup & gitignore update (#5144) --- .gitignore | 3 +++ weed/weed.go | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 4870a7848..9a8e5d112 100644 --- a/.gitignore +++ b/.gitignore @@ -89,3 +89,6 @@ other/java/hdfs/dependency-reduced-pom.xml weed/weed weed/mq/client/cmd/weed_pub/weed_pub docker/weed + +# test generated files +weed/*/*.jpg \ No newline at end of file diff --git a/weed/weed.go b/weed/weed.go index 60d6bf683..773d86274 100644 --- a/weed/weed.go +++ b/weed/weed.go @@ -3,20 +3,19 @@ package main import ( "embed" "fmt" - weed_server "github.com/seaweedfs/seaweedfs/weed/server" - "github.com/seaweedfs/seaweedfs/weed/util" - flag "github.com/seaweedfs/seaweedfs/weed/util/fla9" "io" "io/fs" - "math/rand" "os" "strings" "sync" "text/template" - "time" "unicode" "unicode/utf8" + weed_server "github.com/seaweedfs/seaweedfs/weed/server" + "github.com/seaweedfs/seaweedfs/weed/util" + flag "github.com/seaweedfs/seaweedfs/weed/util/fla9" + "github.com/seaweedfs/seaweedfs/weed/command" "github.com/seaweedfs/seaweedfs/weed/glog" ) @@ -48,7 +47,6 @@ func init() { func main() { glog.MaxSize = 1024 * 1024 * 10 glog.MaxFileCount = 5 - rand.Seed(time.Now().UnixNano()) flag.Usage = usage if command.AutocompleteMain(commands) {