From 102e10afa148b0c509f76fd3f78d9df7b1aa71fe Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Tue, 13 Jun 2017 22:21:36 +0000 Subject: [PATCH] improve comment --- go/master/service.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/go/master/service.go b/go/master/service.go index c2ab3cc6d8..1e2a34972b 100644 --- a/go/master/service.go +++ b/go/master/service.go @@ -237,10 +237,11 @@ func (s *Service) GetTask(dummy int, task *Task) error { // TODO(helin): client need to retry in this // error case. Gotcha: RPC client can't // compare returned error with predefined - // errors like io.EOF, because interface don't - // have same dynamic value when in different - // process. So we need to figure out a way for - // client to check this error correctly. + // errors like io.EOF, because the error + // instance deserialized from RPC is a + // different instance than the error defined + // in package. So we need to figure out a way + // for client to check this error correctly. err := errors.New("no more available task") log.Warningln(err) return err -- GitLab