Skip to content

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.

remove unnecessary code

Chris Lu3fec41b9115d
diff --git a/go/storage/store.go b/go/storage/store.go
index e1babd1e59..664328b17b 100644
--- a/go/storage/store.go
+++ b/go/storage/store.go
@@ -47,9 +47,6 @@ func (mn *MasterNodes) findMaster() (string, error) {
}
}
}
- if len(mn.nodes) == 1 {
- return mn.nodes[0], nil
- }
if mn.lastNode < 0 {
return "", errors.New("No master node avalable!")
}