Jelajahi Sumber

node/watchers/wormchain: linter fixes

tbjump 2 tahun lalu
induk
melakukan
8de708193b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      node/pkg/watchers/wormchain/watcher.go

+ 2 - 2
node/pkg/watchers/wormchain/watcher.go

@@ -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