Skip to content

Commit

Permalink
Ensure only Int numbers are passed to delete and cast to Int64. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored and robacarp committed Jun 7, 2024
1 parent 0107dba commit f6b6b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mosquito/job_run.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ module Mosquito

# Deletes this job_run from the backend.
# Optionally, after a delay in seconds (handled by the backend).
def delete(in ttl = 0)
Mosquito.backend.delete config_key, ttl
def delete(in ttl : Int = 0)
Mosquito.backend.delete config_key, ttl.to_i64
end

# Builds a Job instance from this job_run. Populates the job with config from
Expand Down

0 comments on commit f6b6b62

Please sign in to comment.