parent
60d313b23c
commit
763c62b73e
|
@ -55,7 +55,9 @@ func BigTableWriter(events *AttestationEventReporter, connectionConfig *BigTable
|
|||
}
|
||||
tbl := client.Open(e.connectionConfig.TableName)
|
||||
|
||||
pubsubClient, err := pubsub.NewClient(ctx, e.connectionConfig.GcpProjectID)
|
||||
pubsubClient, err := pubsub.NewClient(ctx,
|
||||
e.connectionConfig.GcpProjectID,
|
||||
option.WithCredentialsFile(e.connectionConfig.GcpKeyFilePath))
|
||||
if err != nil {
|
||||
logger.Error("failed to create GCP PubSub client", zap.Error(err))
|
||||
return fmt.Errorf("failed to create GCP PubSub client: %w", err)
|
||||
|
|
Loading…
Reference in New Issue