Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Sep 25, 2023
1 parent 345857f commit c83e11d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bridge-history-api/internal/controller/history_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ func (c *HistoryController) PostQueryTxsByHash(ctx *gin.Context) {
<-releaseChan
return nil, nil
})
// add this check to fix golint.
// add this check to fix golint: log and continue.
if err != nil {
log.Error("unexpected error", "err", err)
log.Warn("unexpected error", "err", err)
}
}
}
Expand All @@ -150,6 +150,7 @@ func (c *HistoryController) PostQueryTxsByHash(ctx *gin.Context) {

dbResults, err := c.historyLogic.GetTxsByHashes(ctx, uncachedHashes)
if err != nil {
types.RenderFailure(ctx, types.ErrGetTxsByHashFailure, err)
return
}

Expand Down

0 comments on commit c83e11d

Please sign in to comment.