Skip to content

Commit

Permalink
Require id parameter in registerJob
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 11, 2024
1 parent 5dbdee8 commit 8706ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/HummingbirdJobs/JobQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public struct JobQueue<Queue: JobQueueDriver>: Service {
/// - maxRetryCount: Maximum number of times job is retried before being flagged as failed
/// - execute: Job code
public func registerJob<Parameters: Codable & Sendable>(
_ id: JobIdentifier<Parameters>,
id: HBJobIdentifier<Parameters>,
maxRetryCount: Int = 0,
execute: @escaping @Sendable (
Parameters,
Expand Down

0 comments on commit 8706ec0

Please sign in to comment.