From 6dee362383657ba0a6cd513533bd0b51bd978434 Mon Sep 17 00:00:00 2001 From: Jian Han Date: Mon, 22 Jan 2018 23:16:37 +1000 Subject: [PATCH] added TODO tag for bug finding --- concurrency/error_handle/main.go | 2 ++ 1 file changed, 2 insertions(+) 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: