From 9b04f17555a3876ccb730d07b696c99b69032e99 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 23 Mar 2022 23:18:32 -0700 Subject: [PATCH] remove dead code --- weed/server/volume_server.go | 1 - weed/server/volume_server_handlers.go | 1 - 2 files changed, 2 deletions(-) diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 0e49af4a9..dcd27673c 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -23,7 +23,6 @@ type VolumeServer struct { inFlightDownloadDataSize int64 concurrentUploadLimit int64 concurrentDownloadLimit int64 - inFlightUploadDataLimitCond *sync.Cond inFlightDownloadDataLimitCond *sync.Cond SeedMasterNodes []pb.ServerAddress diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.go index cba2a7601..1ff0914a9 100644 --- a/weed/server/volume_server_handlers.go +++ b/weed/server/volume_server_handlers.go @@ -61,7 +61,6 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque atomic.AddInt64(&vs.inFlightUploadDataSize, contentLength) defer func() { atomic.AddInt64(&vs.inFlightUploadDataSize, -contentLength) - vs.inFlightUploadDataLimitCond.Signal() }() // processs uploads