From 35c113b98882af1e1318250a0c47e5672da9a1d5 Mon Sep 17 00:00:00 2001 From: Alex Weaver Date: Fri, 23 Aug 2024 10:50:53 -0500 Subject: [PATCH] Reverse cancellation.NewError one --- pkg/scheduler/scheduler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/scheduler.go b/pkg/scheduler/scheduler.go index 5fd6f2d05c1..68ab65632b2 100644 --- a/pkg/scheduler/scheduler.go +++ b/pkg/scheduler/scheduler.go @@ -405,7 +405,7 @@ func (s *Scheduler) cancelRequestAndRemoveFromPending(key queue.RequestKey, reas req := s.schedulerInflightRequests[key] if req != nil { - req.CancelFunc(cancellation.NewError(reason)) + req.CancelFunc(cancellation.NewErrorf("%s", reason)) } delete(s.schedulerInflightRequests, key)