fix: Remove some deeply-nested instrument spans

Closes #923.
This commit is contained in:
teor 2020-08-20 08:31:07 +10:00 committed by Deirdre Connolly
parent 9a8af731b1
commit b8e8d4f548
1 changed files with 0 additions and 2 deletions

View File

@ -335,7 +335,6 @@ where
/// Queue a download for the genesis block, if it isn't currently known to
/// our node.
#[instrument(skip(self))]
async fn request_genesis(&mut self) -> Result<(), Report> {
// Due to Bitcoin protocol limitations, we can't request the genesis
// block using our standard tip-following algorithm:
@ -422,7 +421,6 @@ where
/// Returns `Err(_)` if an error occurs.
///
/// TODO: handle multiple tips in the state.
#[instrument(skip(self))]
async fn state_contains(&mut self, hash: block::Hash) -> Result<bool, Report> {
match self
.state