Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix goroutine leak, expose global stop ctx
It is common to want a global stop context passed to the provider configure function. Unfortunately the grpc ctx is request scoped and cancels after the function returns. This makes saving/resusing a global ctx impossible. This hack will attach a global stop synchronized context... onto the ctx passed into the provider config function. The reason this is done is to avoid an API signature breaking change, this feature should also be hidden as we would prefer providers use the request scoped and deadlines contexts passed into the CRUD functions over a global one.
- Loading branch information