Skip to content

Commit

Permalink
lint: cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Dec 1, 2024
1 parent 0cc6dc3 commit a383e5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/apalis-sql/src/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ where
let mut hb_storage = self.clone();
let requeue_storage = self.clone();
let stream = self
.stream_jobs(&worker, config.poll_interval, config.buffer_size)
.stream_jobs(worker, config.poll_interval, config.buffer_size)
.map_err(|e| Error::SourceError(Arc::new(Box::new(e))));
let stream = BackendStream::new(stream.boxed(), controller);
let w = worker.clone();
Expand Down
4 changes: 2 additions & 2 deletions packages/apalis-sql/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ where
.bind(args)
.bind(req.parts.task_id.to_string())
.bind(&job_type)
.bind(&req.parts.context.max_attempts())
.bind(req.parts.context.max_attempts())
.execute(&self.pool)
.await?;
Ok(req.parts)
Expand All @@ -508,7 +508,7 @@ where
.bind(job)
.bind(task_id)
.bind(job_type)
.bind(&parts.context.max_attempts())
.bind(parts.context.max_attempts())
.bind(on)
.execute(&self.pool)
.await?;
Expand Down
8 changes: 4 additions & 4 deletions packages/apalis-sql/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ where
.fetch_all(&mut *tx)
.await?;
for id in ids {
let res = fetch_next(&pool, &worker_id, id.0, &config).await?;
let res = fetch_next(&pool, worker_id, id.0, &config).await?;
yield match res {
None => None::<Request<T, SqlContext>>,
Some(job) => {
Expand Down Expand Up @@ -248,7 +248,7 @@ where
.bind(raw)
.bind(parts.task_id.to_string())
.bind(job_type.to_string())
.bind(&parts.context.max_attempts())
.bind(parts.context.max_attempts())
.execute(&self.pool)
.await?;
Ok(parts)
Expand All @@ -269,7 +269,7 @@ where
.bind(job)
.bind(id.to_string())
.bind(job_type)
.bind(&req.parts.context.max_attempts())
.bind(req.parts.context.max_attempts())
.bind(on)
.execute(&self.pool)
.await?;
Expand Down Expand Up @@ -476,7 +476,7 @@ impl<T: Serialize + DeserializeOwned + Sync + Send + Unpin + 'static, Res>
let config = self.config.clone();
let controller = self.controller.clone();
let stream = self
.stream_jobs(&worker, config.poll_interval, config.buffer_size)
.stream_jobs(worker, config.poll_interval, config.buffer_size)
.map_err(|e| Error::SourceError(Arc::new(Box::new(e))));
let stream = BackendStream::new(stream.boxed(), controller);
let requeue_storage = self.clone();
Expand Down

0 comments on commit a383e5d

Please sign in to comment.