mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Remove req_id from CustodyId (#6589)
* Remove req_id from CustodyId because it's not used
This commit is contained in:
@@ -67,7 +67,6 @@ pub struct SamplingRequestId(pub usize);
|
||||
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||
pub struct CustodyId {
|
||||
pub requester: CustodyRequester,
|
||||
pub req_id: Id,
|
||||
}
|
||||
|
||||
/// Downstream components that perform custody by root requests.
|
||||
|
||||
@@ -763,8 +763,7 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
|
||||
let requester = CustodyRequester(id);
|
||||
let mut request = ActiveCustodyRequest::new(
|
||||
block_root,
|
||||
// TODO(das): req_id is duplicated here, also present in id
|
||||
CustodyId { requester, req_id },
|
||||
CustodyId { requester },
|
||||
&custody_indexes_to_fetch,
|
||||
self.log.clone(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user