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 Ludb69ce89f091
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.goindex 967577c72f..c5a8b3c847 100644--- a/weed/command/filer_replication.go+++ b/weed/command/filer_replication.go@@ -2,9 +2,9 @@ package commandimport ("github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/replication""github.com/chrislusf/seaweedfs/weed/server""github.com/spf13/viper"- "github.com/chrislusf/seaweedfs/weed/replication")func init() {diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.goindex b8fe1dbfb0..44928516cd 100644--- a/weed/filer2/filer_notify.go+++ b/weed/filer2/filer_notify.go@@ -1,9 +1,9 @@package filer2import (+ "github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/notification""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "github.com/chrislusf/seaweedfs/weed/glog")func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry, deleteChunks bool) {diff --git a/weed/notification/configuration.go b/weed/notification/configuration.goindex 96087987dd..e0ba61d58f 100644--- a/weed/notification/configuration.go+++ b/weed/notification/configuration.go@@ -2,9 +2,9 @@ package notificationimport ("github.com/chrislusf/seaweedfs/weed/glog"- "github.com/spf13/viper""github.com/chrislusf/seaweedfs/weed/util""github.com/golang/protobuf/proto"+ "github.com/spf13/viper")type MessageQueue interface {diff --git a/weed/replication/notification_kafka.go b/weed/replication/notification_kafka.goindex aaf08a96cc..d101757572 100644--- a/weed/replication/notification_kafka.go+++ b/weed/replication/notification_kafka.go@@ -1,17 +1,17 @@package replicationimport (+ "fmt"+"github.com/Shopify/sarama"- "github.com/chrislusf/seaweedfs/weed/util"- "github.com/golang/protobuf/proto""github.com/chrislusf/seaweedfs/weed/glog"- "fmt""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"+ "github.com/chrislusf/seaweedfs/weed/util"+ "github.com/golang/protobuf/proto")func init() {- NotificationInputs = append(NotificationInputs, &KafkaInput{- })+ NotificationInputs = append(NotificationInputs, &KafkaInput{})}type KafkaInput struct {diff --git a/weed/replication/notifications.go b/weed/replication/notifications.goindex ff40c3aadf..6ae95d36ba 100644--- a/weed/replication/notifications.go+++ b/weed/replication/notifications.go@@ -1,8 +1,8 @@package replicationimport (- "github.com/chrislusf/seaweedfs/weed/util""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"+ "github.com/chrislusf/seaweedfs/weed/util")type NotificationInput interface {diff --git a/weed/replication/replicator.go b/weed/replication/replicator.goindex add7f5e2b1..66d1941285 100644--- a/weed/replication/replicator.go+++ b/weed/replication/replicator.go@@ -1,12 +1,13 @@package replicationimport (- "github.com/chrislusf/seaweedfs/weed/replication/sink"- "github.com/chrislusf/seaweedfs/weed/util"- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "github.com/chrislusf/seaweedfs/weed/replication/source""strings"+"github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"+ "github.com/chrislusf/seaweedfs/weed/replication/sink"+ "github.com/chrislusf/seaweedfs/weed/replication/source"+ "github.com/chrislusf/seaweedfs/weed/util")type Replicator struct {diff --git a/weed/replication/sink/fetch_write.go b/weed/replication/sink/fetch_write.goindex e432aa45c7..4408a712ee 100644--- a/weed/replication/sink/fetch_write.go+++ b/weed/replication/sink/fetch_write.go@@ -2,10 +2,11 @@ package sinkimport ("context"- "sync"- "strings""fmt"- "github.com/chrislusf/seaweedfs/weed/glog"+ "strings"+ "sync"++ "github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/operation""github.com/chrislusf/seaweedfs/weed/pb/filer_pb""github.com/chrislusf/seaweedfs/weed/util"diff --git a/weed/replication/sink/filer_sink.go b/weed/replication/sink/filer_sink.goindex a39402aeb8..422bdeabc8 100644--- a/weed/replication/sink/filer_sink.go+++ b/weed/replication/sink/filer_sink.go@@ -1,14 +1,14 @@package sinkimport (- "fmt""context"+ "fmt"- "github.com/chrislusf/seaweedfs/weed/util"- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb""github.com/chrislusf/seaweedfs/weed/filer2""github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/filer_pb""github.com/chrislusf/seaweedfs/weed/replication/source"+ "github.com/chrislusf/seaweedfs/weed/util")type ReplicationSink interface {diff --git a/weed/replication/source/filer_source.go b/weed/replication/source/filer_source.goindex 8d10dc59a3..69e74a63ca 100644--- a/weed/replication/source/filer_source.go+++ b/weed/replication/source/filer_source.go@@ -1,14 +1,15 @@package sourceimport (- "io"- "github.com/chrislusf/seaweedfs/weed/util"- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "fmt"- "github.com/chrislusf/seaweedfs/weed/glog"- "strings""context"+ "fmt"+ "io""net/http"+ "strings"++ "github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"+ "github.com/chrislusf/seaweedfs/weed/util")type ReplicationSource interface {