From 70b501a5e2b6695420179ea09723f2eee13a9639 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Wed, 18 Oct 2023 23:09:29 +0800 Subject: [PATCH] Replace `enum FetchCMD` by `struct FetchCMD` --- sync/src/synchronizer/mod.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sync/src/synchronizer/mod.rs b/sync/src/synchronizer/mod.rs index 39de8ff0a7..55ab4258cb 100644 --- a/sync/src/synchronizer/mod.rs +++ b/sync/src/synchronizer/mod.rs @@ -68,15 +68,9 @@ enum CanStart { AssumeValidNotFound, } -// TODO: Consider converting this enum to a struct since it only has one item -// -// struct FetchCMD { -// peers: Vec, -// ibd_state: IBDState, -// } -// -enum FetchCMD { - Fetch((Vec, IBDState)), +struct FetchCMD { + peers: Vec, + ibd_state: IBDState, } struct BlockFetchCMD {