Fix bug with context option
The purpose of this pull request is to fix a bug that prevents the context.Context
passed in keyfunc.Options
from behaving as described. The described behavior was that the background goroutine would be closed when the context was cancelled, however, the context was immediately overwritten with context.Background()
causing its value to be ignored.
Thank you to our new contributor @tho!
Related issues:
Related pull requests: