diff --git a/concurrency/error_handle/main.go b/concurrency/error_handle/main.go index fb02ff7..fa0caf1 100644 --- a/concurrency/error_handle/main.go +++ b/concurrency/error_handle/main.go @@ -33,6 +33,8 @@ func errorHandling() { result = Result{Error: err, Response: resp} select { case <-done: + // TODO: need to refactor the code, this might be a bug since + // this will never execute. return // This is where we write the Result to our channel case results <- result: