Skip to content

Commit 76549a6

Browse files
committed
fix(heartbeats): Return none for null block infos
1 parent e840bf4 commit 76549a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/heartbeats-processor/src/remote_db.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ impl HeartbeatEntry {
8080
.decoded_payload
8181
.as_ref()
8282
.and_then(|status| status.get("last_produced_block_info"))
83+
.filter(|v| !v.is_null())
8384
.map(|block_info| serde_json::from_value(block_info.clone()))?;
8485

8586
match result {

0 commit comments

Comments
 (0)