Skip to content

Commit

Permalink
fix: missing redismq missing message
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Dec 5, 2024
1 parent b597cf4 commit b42056d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/redis-mq-example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ struct RedisMq<T, C = JsonCodec<Vec<u8>>> {
codec: PhantomData<C>,
}

type RedisMqMessage<Req> = (Req, RedisMqContext);

Check warning on line 26 in examples/redis-mq-example/src/main.rs

View workflow job for this annotation

GitHub Actions / Check

type alias `RedisMqMessage` is never used

Check warning on line 26 in examples/redis-mq-example/src/main.rs

View workflow job for this annotation

GitHub Actions / Check

type alias `RedisMqMessage` is never used

#[derive(Clone, Debug, Serialize, Deserialize, Default)]
pub struct RedisMqContext {
max_attempts: usize,
Expand Down Expand Up @@ -71,7 +73,7 @@ where
.map(|r| {
let mut req: Request<Req, RedisMqContext> =
C::decode(r.message).map_err(Into::into).unwrap();
req.insert(r.id);
req.parts.context.message_id = r.id;
req
});
tx.send(Ok(msg)).await.unwrap();
Expand Down

0 comments on commit b42056d

Please sign in to comment.