From 543cf1c80e222f3ff4be5fcfa88d2a7e9c868de2 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 25 Feb 2020 23:59:30 -0800 Subject: [PATCH] fix compilation error --- weed/command/mount_std.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 1e6444ae1..e26b7c3f5 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -142,14 +142,12 @@ func RunMount(filer, filerMountRootPath, dir, collection, replication, dataCente } // try to connect to filer, filerBucketsPath may be useful later - filerBucketsPath := "/buckets" grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client") err = withFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error { - resp, err := client.GetFilerConfiguration(context.Background(), &filer_pb.GetFilerConfigurationRequest{}) + _, err := client.GetFilerConfiguration(context.Background(), &filer_pb.GetFilerConfigurationRequest{}) if err != nil { return fmt.Errorf("get filer %s configuration: %v", filerGrpcAddress, err) } - filerBucketsPath = resp.DirBuckets return nil }) if err != nil {