Skip to content

Commit

Permalink
✅ fix
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi authored and actions-user committed Aug 5, 2020
1 parent ab28116 commit cb4ac24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/worker/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (q *queue) Push(ctx context.Context, job JobFunc) error {
}

// Pop returns (JobFunc, nil) if the channnel, which will be used for queuing job, contains JobFunc.
// If pop returns error, Pos returns (nil, error)
// It returns (nil ,error) if it failed to pop from the job queue.
func (q *queue) Pop(ctx context.Context) (JobFunc, error) {
return q.pop(ctx, q.Len())
}
Expand Down
2 changes: 1 addition & 1 deletion internal/worker/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ func Test_queue_pop(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
cancel()
return test{
name: "return (JobFunc, error) when context canceld.",
name: "return (JobFunc, error) when context canceled.",
args: args{
ctx: ctx,
retry: 0,
Expand Down

0 comments on commit cb4ac24

Please sign in to comment.