Skip to content

Commit

Permalink
Merge pull request #7 from czeslavo/add-close
Browse files Browse the repository at this point in the history
Add Close method to transactional publisher
  • Loading branch information
czeslavo authored Mar 20, 2020
2 parents 6b4ba83 + 87b043a commit 04be856
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 04be856

Please sign in to comment.