mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 01:15:35 +08:00
adjust API
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user