diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-18 15:17:27 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-18 15:17:27 -0700 |
| commit | 076c8bd3bcb6f76c84a8df50aff923d493a6bb9d (patch) | |
| tree | c04613e01216887c2efef3452d217e621832a04b /weed/wdclient/masterclient.go | |
| parent | 5d346d44bdec30d632840fb30c520cc2a334e004 (diff) | |
| download | seaweedfs-076c8bd3bcb6f76c84a8df50aff923d493a6bb9d.tar.xz seaweedfs-076c8bd3bcb6f76c84a8df50aff923d493a6bb9d.zip | |
filer master start up with default ip address instead of just localhost
Diffstat (limited to 'weed/wdclient/masterclient.go')
| -rw-r--r-- | weed/wdclient/masterclient.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.go index 67e4509b9..f73853c78 100644 --- a/weed/wdclient/masterclient.go +++ b/weed/wdclient/masterclient.go @@ -14,6 +14,7 @@ import ( type MasterClient struct { clientType string + clientHost string grpcPort uint32 currentMaster string masters []string @@ -22,9 +23,10 @@ type MasterClient struct { vidMap } -func NewMasterClient(grpcDialOption grpc.DialOption, clientType string, clientGrpcPort uint32, masters []string) *MasterClient { +func NewMasterClient(grpcDialOption grpc.DialOption, clientType string, clientHost string, clientGrpcPort uint32, masters []string) *MasterClient { return &MasterClient{ clientType: clientType, + clientHost: clientHost, grpcPort: clientGrpcPort, masters: masters, grpcDialOption: grpcDialOption, |
