threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

processor fn should check if the message expired before pushing it to the forward queue #62

Closed sameh-farouk closed 1 year ago

sameh-farouk commented 2 years ago

I suggest that processor fn should verify the TTL (it is cheap) as it stamps the message before pushing it to the forward queue for further processing. as this could save a lot of unnecessary processing in case of the message was expired already.