From 88687697e358769b80262297aa5d3be229d468b8 Mon Sep 17 00:00:00 2001 From: Jonathan Vuillemin Date: Tue, 11 Jun 2024 15:13:53 +0200 Subject: [PATCH] feat(fxgcppubsub): Added Avro and Protobuf schemas support --- fxgcppubsub/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxgcppubsub/module.go b/fxgcppubsub/module.go index 1460d41..1cf0573 100644 --- a/fxgcppubsub/module.go +++ b/fxgcppubsub/module.go @@ -125,7 +125,7 @@ func NewFxGcpPubSubSchemaClient(p FxGcpPubSubSchemaClientParam) (*pubsub.SchemaC } } - client, err := pubsub.NewSchemaClient(p.Context, p.Config.GetString("modules.gcppubsub.project.id"), schemaClientOptions...) + client, err := pubsub.NewSchemaClient(context.Background(), p.Config.GetString("modules.gcppubsub.project.id"), schemaClientOptions...) if err != nil { return nil, fmt.Errorf("failed to create pubsub schema client: %w", err) }