Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Fixed code-styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Feb 13, 2019
1 parent 9cbaf6c commit 6752764
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions exe-common/src/sync.rs
Expand Up @@ -46,16 +46,14 @@ fn net_sync_to<A: Api>(
// Start fetching at the current HEAD tag, or the genesis block if
// it doesn't exist.
let (our_tip, our_tip_is_genesis) = match storage.get_block_from_tag(&tag::HEAD) {
Err(Error::NoSuchTag) => {
(
BlockRef {
hash: net_cfg.genesis.clone(),
parent: net_cfg.genesis_prev.clone(),
date: BlockDate::Boundary(net_cfg.epoch_start),
},
true
)
},
Err(Error::NoSuchTag) => (
BlockRef {
hash: net_cfg.genesis.clone(),
parent: net_cfg.genesis_prev.clone(),
date: BlockDate::Boundary(net_cfg.epoch_start),
},
true
),
Err(err) => panic!(err),
Ok(block) => {
let header = block.header();
Expand Down

0 comments on commit 6752764

Please sign in to comment.