fix: clean up after setting result

This commit is contained in:
James Houlahan
2020-07-23 14:44:16 +02:00
parent c988d739a1
commit 369c6ebf85
2 changed files with 6 additions and 3 deletions

View File

@ -63,5 +63,8 @@ func (c *Confirmer) SetResult(id string, value bool) error {
req.value <- value
close(req.value)
delete(c.requests, id)
return nil
}