node: fix linter warnings
This commit is contained in:
parent
c24fff4d2d
commit
ff413a2068
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue