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

improve comment

上级 0bebaa05
...@@ -237,10 +237,11 @@ func (s *Service) GetTask(dummy int, task *Task) error { ...@@ -237,10 +237,11 @@ func (s *Service) GetTask(dummy int, task *Task) error {
// TODO(helin): client need to retry in this // TODO(helin): client need to retry in this
// error case. Gotcha: RPC client can't // error case. Gotcha: RPC client can't
// compare returned error with predefined // compare returned error with predefined
// errors like io.EOF, because interface don't // errors like io.EOF, because the error
// have same dynamic value when in different // instance deserialized from RPC is a
// process. So we need to figure out a way for // different instance than the error defined
// client to check this error correctly. // in package. So we need to figure out a way
// for client to check this error correctly.
err := errors.New("no more available task") err := errors.New("no more available task")
log.Warningln(err) log.Warningln(err)
return err return err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册