mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: more precise that rename res to err.
This commit is contained in:
parent
41f7142ff9
commit
92d5d19ce9
@ -504,9 +504,9 @@ func (n *node) stepWithWaitOption(ctx context.Context, m pb.Message, wait bool)
|
|||||||
return ErrStopped
|
return ErrStopped
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case rsp := <-pm.result:
|
case err := <-pm.result:
|
||||||
if rsp != nil {
|
if err != nil {
|
||||||
return rsp
|
return err
|
||||||
}
|
}
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user