From 6207222211db8bfd8f83e05508acce17397d6808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 18 Oct 2018 15:02:05 +0200 Subject: [PATCH] namesys: doc on emitResult MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- namesys/base.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/namesys/base.go b/namesys/base.go index 28bc87dad75..f90e8add164 100644 --- a/namesys/base.go +++ b/namesys/base.go @@ -99,6 +99,8 @@ func resolveAsync(ctx context.Context, r resolver, name string, options opts.Res break } + // We don't bother returning here in case of context timeout as there is + // no good reason to do that, and we may still be able to emit a result emitResult(ctx, outCh, res) case <-ctx.Done(): return