Apply suggestions from code review

Co-Authored-By: melekes <anton.kalyaev@gmail.com>
This commit is contained in:
Ismail Khoffi 2019-03-26 18:17:53 +01:00 committed by GitHub
parent ca70680728
commit ecf1d3980a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -415,7 +415,7 @@ func BlockResults(ctx *rpctypes.Context, heightPtr *int64) (*ctypes.ResultBlockR
tmquery.MustParse(fmt.Sprintf("%s = %d", types.TxHeightKey, height)),
)
if err != nil {
return nil, errors.Wrap(err, "Failed to search indexer for txs")
return nil, errors.Wrap(err, "failed to search indexer for txs")
}
deliverTxs = make([]*abci.ResponseDeliverTx, len(results))
for i, r := range results {
@ -429,7 +429,7 @@ func BlockResults(ctx *rpctypes.Context, heightPtr *int64) (*ctypes.ResultBlockR
for i, tx := range block.Data.Txs {
r, err := txIndexer.Get(tx.Hash())
if err != nil {
return nil, errors.Wrapf(err, "Failed to get Tx (%X) from indexer", tx.Hash())
return nil, errors.Wrapf(err, "failed to get Tx (%X) from indexer", tx.Hash())
}
if r == nil {
return nil, fmt.Errorf("Tx (%X) not found", tx.Hash())

View File

@ -45,7 +45,7 @@ type (
)
var (
ErrNoABCIResponses = errors.New("Could not find results")
ErrNoABCIResponses = errors.New("could not find results")
)
func (e ErrUnknownBlock) Error() string {