diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-07-03 16:41:30 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-07-03 16:41:30 -0700 |
| commit | 4d1484628adbb73dfaf619c3fbe21521b54c4619 (patch) | |
| tree | e8514152fd8275a6a0dd66d2ec29e983c7f1c048 /weed/server/volume_server.go | |
| parent | faa5c2e89af46ef938b9952547be2fb4341c6923 (diff) | |
| download | seaweedfs-4d1484628adbb73dfaf619c3fbe21521b54c4619.tar.xz seaweedfs-4d1484628adbb73dfaf619c3fbe21521b54c4619.zip | |
refactoring
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 367e39d8a..b7ed81be0 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -34,7 +34,7 @@ type VolumeServer struct { func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, port int, publicUrl string, - folders []string, maxCounts []int, minFreeSpacePercent []float32, + folders []string, maxCounts []int, minFreeSpacePercents []float32, needleMapKind storage.NeedleMapType, masterNodes []string, pulseSeconds int, dataCenter string, rack string, @@ -65,7 +65,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024, } vs.SeedMasterNodes = masterNodes - vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercent, vs.needleMapKind) + vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercents, vs.needleMapKind) vs.guard = security.NewGuard(whiteList, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec) handleStaticResources(adminMux) |
