Skip to content

Commit bc84348

Browse files
committed
Skip serializing routes, as we can't ensure they are valid after a restart
1 parent 6831b3c commit bc84348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct Router<T: RoutingSystem + ?Sized> {
2020
#[serde(skip_serializing, skip_deserializing)]
2121
pub links: HashMap<T::Link, Neighbour<T>>,
2222
/// Source, Route
23-
/// #[serde_as(as = "Vec<(_, _)>")]
23+
#[serde(skip_serializing, skip_deserializing)]
2424
pub routes: HashMap<T::NodeAddress, Route<T>>,
2525
pub address: T::NodeAddress,
2626
#[serde_as(as = "Vec<(_, _)>")]

0 commit comments

Comments
 (0)