aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_collection_list.go
diff options
context:
space:
mode:
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
})