mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove unused commentted-out code
This commit is contained in:
parent
9acb4cf2b0
commit
5e91b3b716
@ -104,18 +104,6 @@ func (n *Node) Propose(ctx context.Context, data []byte) error {
|
||||
}
|
||||
}
|
||||
|
||||
// func (n *Node) SingleFlightPropose(ctx context.Context, id string, data []byte) error {
|
||||
// ch := n.getSingleFlightChan(id)
|
||||
// select {
|
||||
// case ch <- data:
|
||||
// return nil
|
||||
// case <-ctx.Done():
|
||||
// return ctx.Err()
|
||||
// case <-n.ctx.Done():
|
||||
// return n.ctx.Err()
|
||||
// }
|
||||
// }
|
||||
|
||||
// Step advances the state machine using m.
|
||||
func (n *Node) Step(m Message) error {
|
||||
select {
|
||||
|
Loading…
x
Reference in New Issue
Block a user