Skip to content

Commit

Permalink
Don’t set delayUntil if there is no delay (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfltaylor authored Feb 13, 2025
1 parent 7511f2d commit acdf38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Queues/QueueWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public struct QueueWorker: Sendable {
payload: jobData.payload,
maxRetryCount: jobData.maxRetryCount,
jobName: jobData.jobName,
delayUntil: .init(timeIntervalSinceNow: Double(delay)),
delayUntil: delay == 0 ? nil : .init(timeIntervalSinceNow: Double(delay)),
queuedAt: .init(),
attempts: jobData.currentAttempt
)
Expand Down

0 comments on commit acdf38b

Please sign in to comment.