mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

This panic can never be reached when using raft.Node, because we only read from propc when there is a leader. However, it is possible to see this error when using raft the raft object directly (as in MultiNode), and in this case it is better to simply drop the proposal (as if we had sent it to a leader that immediately vanished). Add an error return to MemoryStorage.Append for consistency.