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.

fix redundant type from array (#3462)

Guo Lei3172c33fa6b4
diff --git a/weed/filer/filer_notify_test.go b/weed/filer/filer_notify_test.go
index 4d08eb6726..b85b4c4103 100644
--- a/weed/filer/filer_notify_test.go
+++ b/weed/filer/filer_notify_test.go
@@ -10,7 +10,7 @@ import (
"google.golang.org/protobuf/proto"
)
-func TestProtoMarshalText(t *testing.T) {
+func TestProtoMarshal(t *testing.T) {
oldEntry := &Entry{
FullPath: util.FullPath("/this/path/to"),
@@ -22,7 +22,7 @@ func TestProtoMarshalText(t *testing.T) {
TtlSec: 25,
},
Chunks: []*filer_pb.FileChunk{
- &filer_pb.FileChunk{
+ {
FileId: "234,2423423422",
Offset: 234234,
Size: 234,
@@ -48,6 +48,6 @@ func TestProtoMarshalText(t *testing.T) {
t.Fatalf("marshal/unmarshal error: %s", text)
}
- println(text)
+ println(string(text))
}