Remove extraneous space and go fmt.
This commit is contained in:
parent
b12e2fc1db
commit
0b73e14e79
1 changed files with 2 additions and 3 deletions
|
@ -92,7 +92,6 @@ func (bi *blockImporter) readBlock() ([]byte, error) {
|
|||
func (bi *blockImporter) processBlock(serializedBlock []byte) (bool, error) {
|
||||
// Deserialize the block which includes checks for malformed blocks.
|
||||
block, err := btcutil.NewBlockFromBytes(serializedBlock)
|
||||
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
@ -190,8 +189,8 @@ out:
|
|||
now := time.Now()
|
||||
duration := now.Sub(bi.lastLogTime)
|
||||
|
||||
if cfg.Progress != 0 && bi.blocksProcessed > 0 &&
|
||||
duration > time.Second * time.Duration(cfg.Progress) {
|
||||
if cfg.Progress != 0 && bi.blocksProcessed > 0 &&
|
||||
duration > time.Second*time.Duration(cfg.Progress) {
|
||||
durationMillis := int64(duration / time.Millisecond)
|
||||
tDuration := 10 * time.Millisecond * time.Duration(durationMillis/10)
|
||||
blockStr := "blocks"
|
||||
|
|
Loading…
Reference in a new issue