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.

adjust API

Chris Lu4e0522a80ca5
diff --git a/weed/wdclient/wdclient.go b/weed/wdclient/wdclient.go
index b16e239fb8..722f4d061d 100644
--- a/weed/wdclient/wdclient.go
+++ b/weed/wdclient/wdclient.go
@@ -5,15 +5,11 @@ import (
)
type SeaweedClient struct {
- ctx context.Context
- Master string
- ClientName string
+ *MasterClient
}
func NewSeaweedClient(ctx context.Context, clientName string, masters []string) *SeaweedClient {
return &SeaweedClient{
- ctx: ctx,
- ClientName: clientName,
-
+ MasterClient: NewMasterClient(ctx, clientName, masters),
}
}