aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/wdclient/wdclient.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/weed/wdclient/wdclient.go b/weed/wdclient/wdclient.go
index b16e239fb..722f4d061 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),
}
}