From 4e0522a80ca5933f9a4c89b274fcef65e4bef4d9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 28 Jul 2018 18:17:31 -0700 Subject: [PATCH] adjust API --- weed/wdclient/wdclient.go | 8 ++------ 1 file 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), } }