Skip to content

Commit

Permalink
Merge pull request #10574 from johncming/rename_err
Browse files Browse the repository at this point in the history
raft: more precise that rename res to err.
  • Loading branch information
xiang90 authored Mar 22, 2019
2 parents 41f7142 + 92d5d19 commit 7a5acb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raft/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ func (n *node) stepWithWaitOption(ctx context.Context, m pb.Message, wait bool)
return ErrStopped
}
select {
case rsp := <-pm.result:
if rsp != nil {
return rsp
case err := <-pm.result:
if err != nil {
return err
}
case <-ctx.Done():
return ctx.Err()
Expand Down

0 comments on commit 7a5acb4

Please sign in to comment.