diff options
| author | Chris Lu <chris.lu@uber.com> | 2019-03-19 23:01:23 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@uber.com> | 2019-03-19 23:01:23 -0700 |
| commit | 88ab932f7d439715698183fbdfbd4ade71596b67 (patch) | |
| tree | afb6d86a39145bc944dbd9986ec05c31d4298aa3 /weed/shell/command_collection_list.go | |
| parent | 5ae4b963a47a98426392b5434a9c3e26ad550e27 (diff) | |
| download | seaweedfs-88ab932f7d439715698183fbdfbd4ade71596b67.tar.xz seaweedfs-88ab932f7d439715698183fbdfbd4ade71596b67.zip | |
refactoring function parameter
Diffstat (limited to 'weed/shell/command_collection_list.go')
| -rw-r--r-- | weed/shell/command_collection_list.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_collection_list.go b/weed/shell/command_collection_list.go index 0797e56fb..0db74ef20 100644 --- a/weed/shell/command_collection_list.go +++ b/weed/shell/command_collection_list.go @@ -25,8 +25,8 @@ func (c *commandCollectionList) Help() string { func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer io.Writer) (err error) { var resp *master_pb.CollectionListResponse - - err = commandEnv.masterClient.WithClient(context.Background(), func(ctx context.Context, client master_pb.SeaweedClient) error { + ctx := context.Background() + err = commandEnv.masterClient.WithClient(ctx, func(client master_pb.SeaweedClient) error { resp, err = client.CollectionList(ctx, &master_pb.CollectionListRequest{}) return err }) |
