Skip to content

Commit 6a20eea

Browse files
nit
1 parent 841d16f commit 6a20eea

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

consensus/src/marshal/ancestry.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ where
8989
let clock = clock.clone();
9090
marshal
9191
.subscribe_parent(child)
92-
.map(move |parent| match parent {
93-
Some(parent) => {
92+
.map(move |parent| {
93+
parent.map(|parent| {
9494
timer.observe(clock.as_ref());
95-
Some((expected, parent))
96-
}
97-
None => None,
95+
(expected, parent)
96+
})
9897
})
9998
.boxed()
10099
}

0 commit comments

Comments
 (0)