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/filer2/filer.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/filer2/filer.go')
| -rw-r--r-- | weed/filer2/filer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go index acd609847..07eb994e8 100644 --- a/weed/filer2/filer.go +++ b/weed/filer2/filer.go @@ -40,10 +40,10 @@ type Filer struct { metaLogReplication string } -func NewFiler(masters []string, grpcDialOption grpc.DialOption, filerGrpcPort uint32, collection string, replication string, notifyFn func()) *Filer { +func NewFiler(masters []string, grpcDialOption grpc.DialOption, filerHost string, filerGrpcPort uint32, collection string, replication string, notifyFn func()) *Filer { f := &Filer{ directoryCache: ccache.New(ccache.Configure().MaxSize(1000).ItemsToPrune(100)), - MasterClient: wdclient.NewMasterClient(grpcDialOption, "filer", filerGrpcPort, masters), + MasterClient: wdclient.NewMasterClient(grpcDialOption, "filer", filerHost, filerGrpcPort, masters), fileIdDeletionQueue: util.NewUnboundedQueue(), GrpcDialOption: grpcDialOption, } |
