SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
go fmt
Chris Lu5c467083e51a
diff --git a/weed/msgqueue/configuration.go b/weed/msgqueue/configuration.goindex 63f103c1e3..dec954c092 100644--- a/weed/msgqueue/configuration.go+++ b/weed/msgqueue/configuration.go@@ -33,10 +33,10 @@ var (func LoadConfiguration() {// find a filer store- viper.SetConfigName("message_queue") // name of config file (without extension)- viper.AddConfigPath(".") // optionally look for config in the working directory- viper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths- viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file in+ viper.SetConfigName("message_queue") // name of config file (without extension)+ viper.AddConfigPath(".") // optionally look for config in the working directory+ viper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths+ viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file inif err := viper.ReadInConfig(); err != nil { // Handle errors reading the config fileglog.Fatalf("Failed to load message_queue.toml file from current directory, or $HOME/.seaweedfs/, "+"or /etc/seaweedfs/"+diff --git a/weed/msgqueue/kafka/kafka_queue.go b/weed/msgqueue/kafka/kafka_queue.goindex c013baf5f4..72bfd657a9 100644--- a/weed/msgqueue/kafka/kafka_queue.go+++ b/weed/msgqueue/kafka/kafka_queue.go@@ -1,11 +1,10 @@package kafkaimport (- _ "github.com/go-sql-driver/mysql"- "github.com/chrislusf/seaweedfs/weed/msgqueue"- "github.com/golang/protobuf/proto""github.com/Shopify/sarama""github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/msgqueue"+ "github.com/golang/protobuf/proto")func init() {diff --git a/weed/msgqueue/log/log_queue.go b/weed/msgqueue/log/log_queue.goindex ef7967e6ce..9ce9ff8be6 100644--- a/weed/msgqueue/log/log_queue.go+++ b/weed/msgqueue/log/log_queue.go@@ -1,10 +1,9 @@package kafkaimport (- _ "github.com/go-sql-driver/mysql"+ "github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/msgqueue""github.com/golang/protobuf/proto"- "github.com/chrislusf/seaweedfs/weed/glog")func init() {diff --git a/weed/server/filer_server.go b/weed/server/filer_server.goindex c9dabe5cbe..61bb6e0ea7 100644--- a/weed/server/filer_server.go+++ b/weed/server/filer_server.go@@ -1,6 +1,8 @@package weed_serverimport (+ "net/http"+"github.com/chrislusf/seaweedfs/weed/filer2"_ "github.com/chrislusf/seaweedfs/weed/filer2/cassandra"_ "github.com/chrislusf/seaweedfs/weed/filer2/leveldb"@@ -8,12 +10,11 @@ import (_ "github.com/chrislusf/seaweedfs/weed/filer2/mysql"_ "github.com/chrislusf/seaweedfs/weed/filer2/postgres"_ "github.com/chrislusf/seaweedfs/weed/filer2/redis"+ "github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/msgqueue"_ "github.com/chrislusf/seaweedfs/weed/msgqueue/kafka"_ "github.com/chrislusf/seaweedfs/weed/msgqueue/log"- "github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/security"- "net/http"- "github.com/chrislusf/seaweedfs/weed/msgqueue")type FilerOption struct {