(ctx context.Context)
| 74 | } |
| 75 | |
| 76 | func (ps *PubSub) handleOutbound(ctx context.Context) { |
| 77 | for msg := range ps.Outbound { |
| 78 | if err := ps.Topic.Publish(ctx, []byte(msg)); err != nil { |
| 79 | logrus.Errorf("Failed to publish message: %v", err) |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // Exit closes the pubsub channels |
| 85 | func (ps *PubSub) Exit() { |