aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/shell_liner.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-08 00:09:11 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-08 17:47:56 -0800
commit4729a57cc01ca360e7aa70c43b2290bb2e8bcd2d (patch)
tree6003837cf15ab74ec1c6e809708dc146a8bc2f1a /weed/shell/shell_liner.go
parentd9dd72ea560da14ecb3cbf06cdf94b82071a9658 (diff)
downloadseaweedfs-4729a57cc01ca360e7aa70c43b2290bb2e8bcd2d.tar.xz
seaweedfs-4729a57cc01ca360e7aa70c43b2290bb2e8bcd2d.zip
use constants
Diffstat (limited to 'weed/shell/shell_liner.go')
-rw-r--r--weed/shell/shell_liner.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index fed62aba1..caf8da859 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -3,6 +3,7 @@ package shell
import (
"context"
"fmt"
+ "github.com/chrislusf/seaweedfs/weed/cluster"
"github.com/chrislusf/seaweedfs/weed/pb"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
@@ -54,7 +55,7 @@ func RunShell(options ShellOptions) {
var filers []pb.ServerAddress
commandEnv.MasterClient.WithClient(func(client master_pb.SeaweedClient) error {
resp, err := client.ListClusterNodes(context.Background(), &master_pb.ListClusterNodesRequest{
- ClientType: "filer",
+ ClientType: cluster.FilerType,
})
if err != nil {
return err