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 Lud3205a007071
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.goindex 100117e6ab..1f2697cda1 100644--- a/weed/filer2/filer.go+++ b/weed/filer2/filer.go@@ -1,18 +1,18 @@package filer2import (+ "context""fmt"-- "github.com/chrislusf/seaweedfs/weed/glog"- "github.com/chrislusf/seaweedfs/weed/operation"- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "github.com/karlseguin/ccache""os""path/filepath""strings""time"++ "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/wdclient"- "context"+ "github.com/karlseguin/ccache")type Filer struct {diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.goindex 53e4b59e1b..2952a8071d 100644--- a/weed/server/master_grpc_server.go+++ b/weed/server/master_grpc_server.go@@ -1,15 +1,15 @@package weed_serverimport (+ "fmt""net""strings"+ "github.com/chrislusf/raft""github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/master_pb""github.com/chrislusf/seaweedfs/weed/topology""google.golang.org/grpc/peer"- "fmt"- "github.com/chrislusf/raft")func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error {diff --git a/weed/server/master_server.go b/weed/server/master_server.goindex 5b6bc8509b..07a398ead6 100644--- a/weed/server/master_server.go+++ b/weed/server/master_server.go@@ -9,12 +9,12 @@ import ("github.com/chrislusf/raft""github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/master_pb""github.com/chrislusf/seaweedfs/weed/security""github.com/chrislusf/seaweedfs/weed/sequence""github.com/chrislusf/seaweedfs/weed/topology""github.com/chrislusf/seaweedfs/weed/util""github.com/gorilla/mux"- "github.com/chrislusf/seaweedfs/weed/pb/master_pb")type MasterServer struct {diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.goindex e3ffd48340..347901f1ac 100644--- a/weed/wdclient/masterclient.go+++ b/weed/wdclient/masterclient.go@@ -2,12 +2,12 @@ package wdclientimport ("context"- "time""fmt"+ "time"+ "github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/master_pb""github.com/chrislusf/seaweedfs/weed/util"- "github.com/chrislusf/seaweedfs/weed/glog")type MasterClient struct {diff --git a/weed/wdclient/vid_map.go b/weed/wdclient/vid_map.goindex 0b0cba178e..2f56b8fce8 100644--- a/weed/wdclient/vid_map.go+++ b/weed/wdclient/vid_map.go@@ -1,13 +1,14 @@package wdclientimport (- "sync"- "strings"- "math/rand""errors"+ "fmt"+ "math/rand""strconv"+ "strings"+ "sync"+"github.com/chrislusf/seaweedfs/weed/glog"- "fmt")type Location struct {