adjust API

This commit is contained in:
Chris Lu
2018-07-28 18:17:31 -07:00
parent 888eb2abb5
commit 4e0522a80c

View File

@@ -5,15 +5,11 @@ import (
) )
type SeaweedClient struct { type SeaweedClient struct {
ctx context.Context *MasterClient
Master string
ClientName string
} }
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, MasterClient: NewMasterClient(ctx, clientName, masters),
ClientName: clientName,
} }
} }