Skip to content

Commit

Permalink
Add Close() to reprovider
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
  • Loading branch information
michaelavila committed Apr 11, 2019
1 parent 46296c4 commit 92a9d0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions provider/reprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ func (rp *Reprovider) Run() {
go rp.handleAnnouncements()
}

// Close stops thhe reprovider
func (rp *Reprovider) Close() error {
return rp.queue.Close()
}

// Trigger causes a reprovide
func (rp *Reprovider) Trigger(ctx context.Context) error {
select {
Expand Down

0 comments on commit 92a9d0a

Please sign in to comment.