node: fix linter warnings

This commit is contained in:
tbjump 2023-05-03 22:34:21 +00:00 committed by tbjump
parent c24fff4d2d
commit ff413a2068
2 changed files with 3 additions and 5 deletions

View File

@ -62,7 +62,7 @@ func getVAA(chainID vaa.ChainID, emitterAddr vaa.Address, nonce uint32) *vaa.VAA
}
// helper method for *vaa.BatchVAA creation
func getBatchVAA(chainID vaa.ChainID, txID []byte, nonce uint32, emitterAddr vaa.Address) *vaa.BatchVAA {
func getBatchVAA(chainID vaa.ChainID, _ []byte, nonce uint32, emitterAddr vaa.Address) *vaa.BatchVAA {
v := getVAA(chainID, emitterAddr, nonce)
obs := &vaa.Observation{
Index: uint8(0),
@ -691,7 +691,7 @@ func TestSpyHandleGossipBatchVAABatchFilter(t *testing.T) {
return
}
if resType.SignedBatchVaa.Nonce != uint32(nonce) {
if resType.SignedBatchVaa.Nonce != nonce {
t.Fail()
}

View File

@ -134,9 +134,7 @@ func BigTableWriter(events *AttestationEventReporter, connectionConfig *BigTable
zap.Error(err))
errC <- err
}
publishResult := pubsubTopic.Publish(ctx, &pubsub.Message{
Data: []byte(b),
})
publishResult := pubsubTopic.Publish(ctx, &pubsub.Message{Data: b})
if _, err = publishResult.Get(ctx); err != nil {
logger.Error("Failed getting GCP PubSub publish reciept",
zap.String("rowKey", rowKey),