Skip to content

Commit e20bc97

Browse files
yashmehrotramoshloop
authored andcommitted
chore: add json tags to pubsub
1 parent b831a7b commit e20bc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapers/pubsub/pubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func ListenToSubscription(ctx context.Context, subscription *gocloudpubsub.Subsc
4242
}
4343

4444
type PubSubMessage struct {
45-
Message any
46-
Metadata map[string]string
45+
Message any `json:"message"`
46+
Metadata map[string]string `json:"metadata"`
4747
}
4848

4949
func processMessageBody(msgBody []byte, metadata map[string]string) PubSubMessage {

0 commit comments

Comments
 (0)