Skip to content

Commit 8e4ec8b

Browse files
Fix semaphoreProbeTaskPoller to match updated taskPoller interface
Update PollTask signature on the test mock to accept *pollHint, matching the interface change from the previous commit. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6b15102 commit 8e4ec8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/internal_worker_base_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func newSemaphoreProbeTaskPoller() *semaphoreProbeTaskPoller {
234234
}
235235

236236
// PollTask implements taskPoller and blocks until a signal is provided so the semaphore permits stay acquired.
237-
func (p *semaphoreProbeTaskPoller) PollTask() (taskForWorker, error) {
237+
func (p *semaphoreProbeTaskPoller) PollTask(_ *pollHint) (taskForWorker, error) {
238238
_, ok := <-p.signals
239239
if !ok {
240240
return nil, nil

0 commit comments

Comments
 (0)