From de7d1b6225778a935a28a2675a22bb2f3c02c98a Mon Sep 17 00:00:00 2001 From: DarthSim Date: Sun, 21 Sep 2025 21:27:04 +0300 Subject: [PATCH] Remove monitoring.StartQueueSegment from workers.Aquire --- workers/workers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/workers/workers.go b/workers/workers.go index 8eb2b7a2..3edaf6f4 100644 --- a/workers/workers.go +++ b/workers/workers.go @@ -3,7 +3,6 @@ package workers import ( "context" - "github.com/imgproxy/imgproxy/v3/monitoring" "golang.org/x/sync/semaphore" ) @@ -42,8 +41,6 @@ func New(config *Config) (*Workers, error) { // Acquire acquires a worker. // It returns a worker release function and an error if any. func (s *Workers) Acquire(ctx context.Context) (context.CancelFunc, error) { - defer monitoring.StartQueueSegment(ctx)() - // First, try to acquire the queue semaphore if configured. // If the queue is full, return an error immediately. releaseQueue, err := s.acquireQueue()