summaryrefslogtreecommitdiff
path: root/requests/requests.go
diff options
context:
space:
mode:
Diffstat (limited to 'requests/requests.go')
-rw-r--r--requests/requests.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/requests/requests.go b/requests/requests.go
index ec4c596..c343f22 100644
--- a/requests/requests.go
+++ b/requests/requests.go
@@ -63,6 +63,10 @@ func NewRequestQueue(w matcher.WorkersManager, j matcher.JobsManager) *ReqsColle
r.deadlineTimes.setMatcher(r.deadlineMatcher)
r.timeoutTimes.setMatcher(r.timeoutMatcher)
+ if w != nil {
+ w.SetChangeListener(r)
+ }
+
return r
}