code review update

commit-id:55c28b21
This commit is contained in:
justinschuldt 2022-01-26 00:35:56 -06:00 committed by Leopold Schabel
parent 054d800f19
commit 79f489bd28
1 changed files with 1 additions and 2 deletions

View File

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