提交 102e10af 编写于 作者: H Helin Wang

improve comment

上级 0bebaa05
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册