node/watchers/wormchain: linter fixes

This commit is contained in:
tbjump 2023-05-03 22:25:37 +00:00 committed by tbjump
parent e979d20ccd
commit 8de708193b
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ func (e *Watcher) Run(ctx context.Context) error {
<-t.C
// Query and report height and set currentWormchainHeight
resp, err := client.Get(fmt.Sprintf("%s/blocks/latest", e.urlLCD))
resp, err := client.Get(fmt.Sprintf("%s/blocks/latest", e.urlLCD)) //nolint:noctx // TODO FIXME we should propagate context with Deadline here.
if err != nil {
logger.Error("query latest block response error", zap.Error(err))
continue
@ -188,7 +188,7 @@ func (e *Watcher) Run(ctx context.Context) error {
}
// Query for tx by hash
resp, err := client.Get(fmt.Sprintf("%s/cosmos/tx/v1beta1/txs/%s", e.urlLCD, tx))
resp, err := client.Get(fmt.Sprintf("%s/cosmos/tx/v1beta1/txs/%s", e.urlLCD, tx)) //nolint:noctx // TODO FIXME we should propagate context with Deadline here.
if err != nil {
logger.Error("query tx response error", zap.Error(err))
continue