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 {
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),
}
}