Browse Source

adjust API

pull/702/head
Chris Lu 7 years ago
parent
commit
4e0522a80c
  1. 8
      weed/wdclient/wdclient.go

8
weed/wdclient/wdclient.go

@ -5,15 +5,11 @@ import (
) )
type SeaweedClient struct { type SeaweedClient struct {
ctx context.Context
Master string
ClientName string
*MasterClient
} }
func NewSeaweedClient(ctx context.Context, clientName string, masters []string) *SeaweedClient { func NewSeaweedClient(ctx context.Context, clientName string, masters []string) *SeaweedClient {
return &SeaweedClient{ return &SeaweedClient{
ctx: ctx,
ClientName: clientName,
MasterClient: NewMasterClient(ctx, clientName, masters),
} }
} }
Loading…
Cancel
Save