gofr-dev / gofr

An opinionated GoLang framework for accelerated microservice development. Built in support for databases and observability.
https://gofr.dev
Apache License 2.0
3.6k stars 236 forks source link

Fix: panic in google pubsub, recieving on closed channel #1211

Closed vipul-rawat closed 5 days ago

vipul-rawat commented 5 days ago

Pull Request Template

Description:

closes #1210

Using a map of channels with the topic as key, calling the Google client subscribe function only when the subscription has not been started. The channel's closing is done in the close function when shutdown is initiated.