refactor: simplify function signatures and improve code readability
Some checks failed
lint / lint (push) Failing after 9m6s
test / unit (push) Has been cancelled

This commit is contained in:
2026-05-29 03:47:29 +02:00
parent ecb61f9b8f
commit bd370776fe
4 changed files with 59 additions and 67 deletions

View File

@@ -133,10 +133,9 @@ async fn main() {
Err(e) => {
if raw.delivery_count >= CONSUMER_MAX_DELIVER as u64 {
// Rebuild payload from raw bytes for DLQ storage.
let payload_val = serde_json::from_slice::<serde_json::Value>(
&raw.payload,
)
.unwrap_or(serde_json::Value::Null);
let payload_val =
serde_json::from_slice::<serde_json::Value>(&raw.payload)
.unwrap_or(serde_json::Value::Null);
if let Err(dlq_err) = infra
.dlq_store
.insert(event_type, &payload_val, &e.to_string())