Skip to content

Commit

Permalink
namesys: doc on emitResult
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <[email protected]>
  • Loading branch information
magik6k committed Oct 18, 2018
1 parent 16e6343 commit 6207222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions namesys/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6207222

Please sign in to comment.