Rust cargo fmt
This commit is contained in:
parent
6b4c0fe1a3
commit
ad62e1e35c
@ -101,7 +101,7 @@ where
|
|||||||
Err(error) => {
|
Err(error) => {
|
||||||
return Ok(Outcome::InvalidBlock(InvalidBlock::StateTransitionFailed(
|
return Ok(Outcome::InvalidBlock(InvalidBlock::StateTransitionFailed(
|
||||||
error,
|
error,
|
||||||
)))
|
)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,10 +94,10 @@ impl<T: SlotClock, U: BeaconNode, V: DutiesReader, W: Signer> BlockProducer<T, U
|
|||||||
let is_block_production_slot = match self.epoch_map.is_block_production_slot(slot) {
|
let is_block_production_slot = match self.epoch_map.is_block_production_slot(slot) {
|
||||||
Ok(result) => result,
|
Ok(result) => result,
|
||||||
Err(DutiesReaderError::UnknownEpoch) => {
|
Err(DutiesReaderError::UnknownEpoch) => {
|
||||||
return Ok(PollOutcome::ProducerDutiesUnknown(slot))
|
return Ok(PollOutcome::ProducerDutiesUnknown(slot));
|
||||||
}
|
}
|
||||||
Err(DutiesReaderError::UnknownValidator) => {
|
Err(DutiesReaderError::UnknownValidator) => {
|
||||||
return Ok(PollOutcome::ValidatorIsUnknown(slot))
|
return Ok(PollOutcome::ValidatorIsUnknown(slot));
|
||||||
}
|
}
|
||||||
Err(DutiesReaderError::EpochLengthIsZero) => return Err(Error::EpochLengthIsZero),
|
Err(DutiesReaderError::EpochLengthIsZero) => return Err(Error::EpochLengthIsZero),
|
||||||
Err(DutiesReaderError::Poisoned) => return Err(Error::EpochMapPoisoned),
|
Err(DutiesReaderError::Poisoned) => return Err(Error::EpochMapPoisoned),
|
||||||
|
Loading…
Reference in New Issue
Block a user