Skip to content

Commit

Permalink
Add Close method to transactional publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Burzynski committed Mar 20, 2020
1 parent 6b4ba83 commit 87b043a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/firestore/transactional.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ func NewTransactionalPublisher(config PublisherConfig, tx *firestore.Transaction
func (p *TransactionalPublisher) Publish(topic string, messages ...*message.Message) error {
return p.publisher.PublishInTransaction(topic, p.tx, messages...)
}

func (p *TransactionalPublisher) Close() error {
return p.publisher.Close()
}

0 comments on commit 87b043a

Please sign in to comment.