aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_collection_list.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2019-03-19 23:01:23 -0700
committerChris Lu <chris.lu@uber.com>2019-03-19 23:01:23 -0700
commit88ab932f7d439715698183fbdfbd4ade71596b67 (patch)
treeafb6d86a39145bc944dbd9986ec05c31d4298aa3 /weed/shell/command_collection_list.go
parent5ae4b963a47a98426392b5434a9c3e26ad550e27 (diff)
downloadseaweedfs-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.go4
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
})