diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-28 18:17:31 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-28 18:17:31 -0700 |
| commit | 4e0522a80ca5933f9a4c89b274fcef65e4bef4d9 (patch) | |
| tree | 227f3d802d877bff7c8a5c26c81c5807d03e3cb1 | |
| parent | 888eb2abb58413d52eb0a053f3bd7f94149f8f49 (diff) | |
| download | seaweedfs-4e0522a80ca5933f9a4c89b274fcef65e4bef4d9.tar.xz seaweedfs-4e0522a80ca5933f9a4c89b274fcef65e4bef4d9.zip | |
adjust API
| -rw-r--r-- | weed/wdclient/wdclient.go | 8 |
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), } } |
