node/watchers/wormchain: linter fixes
This commit is contained in:
parent
e979d20ccd
commit
8de708193b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue