Skip to content

Commit

Permalink
Replace enum FetchCMD by struct FetchCMD
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Oct 18, 2023
1 parent 7d93a8f commit 70b501a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions sync/src/synchronizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PeerIndex>,
// ibd_state: IBDState,
// }
//
enum FetchCMD {
Fetch((Vec<PeerIndex>, IBDState)),
struct FetchCMD {
peers: Vec<PeerIndex>,
ibd_state: IBDState,
}

struct BlockFetchCMD {
Expand Down

0 comments on commit 70b501a

Please sign in to comment.