Skip to content

Commit

Permalink
chore: trival clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Aug 29, 2023
1 parent da7b3c6 commit 4ef7dd2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sn_node/src/get_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,16 @@ impl Node {
};

let record_key = address.as_record_key().ok_or(error.clone())?;
let record = self
let record = if let Some(result) = self
.network
.get_local_record(record_key)
.get_local_record(&record_key)
.await
.map_err(|_| error.clone())?;
.map_err(|_| error.clone())?
{
result
} else {
return Err(error);
};
let header = RecordHeader::from_record(&record).map_err(|_| error.clone())?;

match header.kind {
Expand Down

0 comments on commit 4ef7dd2

Please sign in to comment.