kube-object-storage / lib-bucket-provisioner

Library for the dynamic provisioning of object store buckets to be used by object store providers.
Apache License 2.0
20 stars 22 forks source link

handle go routine execution error #218

Closed leseb closed 3 years ago

leseb commented 3 years ago

Prior to this, RunWithContext would block and wait for the context to be cancelled and error handling of the go routine was lost since the channel was never read again. Now we check if the channel has an error and return. Also if the context is terminated we close the channel and return.

Signed-off-by: Sébastien Han seb@redhat.com