Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed May 22, 2024
1 parent 3266d72 commit 3b19912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion zetaclient/chains/bitcoin/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ func (ob *Observer) LoadLastScannedBlock() error {
if chains.IsBitcoinRegnet(ob.chain.ChainId) {

Check warning on line 708 in zetaclient/chains/bitcoin/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/bitcoin/observer/observer.go#L708

Added line #L708 was not covered by tests
ob.SetLastBlockHeightScanned(100)
}
ob.logger.Chain.Info().Msgf("LoadLastScannedBlock: chain %d starts scanning from block %d", ob.chain.ChainId, ob.GetLastBlockHeightScanned())
ob.logger.Chain.Info().
Msgf("LoadLastScannedBlock: chain %d starts scanning from block %d", ob.chain.ChainId, ob.GetLastBlockHeightScanned())

Check warning on line 712 in zetaclient/chains/bitcoin/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/bitcoin/observer/observer.go#L711-L712

Added lines #L711 - L712 were not covered by tests

return nil
}
Expand Down
6 changes: 4 additions & 2 deletions zetaclient/chains/evm/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ func (ob *Observer) LoadLastScannedBlock() error {

// load from environment variable if set
if scanFromBlock != "" {
ob.logger.Chain.Info().Msgf("LoadLastScannedBlock: envvar %s is set; scan from block %s", envvar, scanFromBlock)
ob.logger.Chain.Info().
Msgf("LoadLastScannedBlock: envvar %s is set; scan from block %s", envvar, scanFromBlock)

Check warning on line 583 in zetaclient/chains/evm/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/evm/observer/observer.go#L582-L583

Added lines #L582 - L583 were not covered by tests
if scanFromBlock == clienttypes.EnvVarLatest {
header, err := ob.evmClient.HeaderByNumber(context.Background(), nil)
if err != nil {
Expand Down Expand Up @@ -610,7 +611,8 @@ func (ob *Observer) LoadLastScannedBlock() error {
ob.SetLastBlockHeightScanned(lastBlock.Num)

Check warning on line 611 in zetaclient/chains/evm/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/evm/observer/observer.go#L611

Added line #L611 was not covered by tests
}
}
ob.logger.Chain.Info().Msgf("LoadLastScannedBlock: chain %d starts scanning from block %d", ob.chain.ChainId, ob.GetLastBlockHeightScanned())
ob.logger.Chain.Info().
Msgf("LoadLastScannedBlock: chain %d starts scanning from block %d", ob.chain.ChainId, ob.GetLastBlockHeightScanned())

Check warning on line 615 in zetaclient/chains/evm/observer/observer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/evm/observer/observer.go#L614-L615

Added lines #L614 - L615 were not covered by tests

return nil
}
Expand Down

0 comments on commit 3b19912

Please sign in to comment.