aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_mount_configure.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-10-17 22:11:50 -0700
committerGitHub <noreply@github.com>2025-10-17 22:11:50 -0700
commit97f30287821e1c49b816f2e4c05be46728b06a0b (patch)
tree1169d6e45c06698fc4081b8cfc27f2d4d2e98684 /weed/shell/command_mount_configure.go
parent8d63a9cf5f011baa4b86372b4f28b7179b9dc9cb (diff)
downloadseaweedfs-97f30287821e1c49b816f2e4c05be46728b06a0b.tar.xz
seaweedfs-97f30287821e1c49b816f2e4c05be46728b06a0b.zip
Clean up logs and deprecated functions (#7339)
* less logs * fix deprecated grpc.Dial
Diffstat (limited to 'weed/shell/command_mount_configure.go')
-rw-r--r--weed/shell/command_mount_configure.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/shell/command_mount_configure.go b/weed/shell/command_mount_configure.go
index 5b224c39e..185857b9a 100644
--- a/weed/shell/command_mount_configure.go
+++ b/weed/shell/command_mount_configure.go
@@ -4,12 +4,13 @@ import (
"context"
"flag"
"fmt"
+ "io"
+
"github.com/seaweedfs/seaweedfs/weed/pb/mount_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
_ "google.golang.org/grpc/resolver/passthrough"
- "io"
)
func init() {
@@ -53,7 +54,7 @@ func (c *commandMountConfigure) Do(args []string, commandEnv *CommandEnv, writer
}
localSocket := fmt.Sprintf("/tmp/seaweedfs-mount-%d.sock", mountDirHash)
- clientConn, err := grpc.Dial("passthrough:///unix://"+localSocket, grpc.WithTransportCredentials(insecure.NewCredentials()))
+ clientConn, err := grpc.NewClient("passthrough:///unix://"+localSocket, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return
}