Skip to content

Commit 0714745

Browse files
committed
interface method sign changes
1 parent 7708924 commit 0714745

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

orchestrator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
type WorkerOrchestrator interface {
99
GetQueueLength() int
1010
AddJobToQueue(job *Job)
11-
Start(ctx context.Context) []*WorkerResult
12-
StartAsAsync(ctx context.Context, workerResultCh chan *WorkerResult)
11+
Start(context.Context) []*WorkerResult
12+
StartAsAsync(context.Context, chan *WorkerResult)
1313
}
1414

1515
type workerOrchestrator struct {

worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package patron
33
type Worker interface {
44
GetID() int
55
GetJob() *Job
6-
SetJob(job *Job)
6+
SetJob(*Job)
77
FinalizeJob()
88
IsBusy() bool
99
Work() error

0 commit comments

Comments
 (0)