Remove unused raft endpoints

This commit is contained in:
Armon Dadgar 2013-12-12 11:48:22 -08:00
parent d17b32d165
commit fd831ade43
1 changed files with 0 additions and 15 deletions

View File

@ -9,21 +9,6 @@ type Raft struct {
server *Server
}
func (r *Raft) Apply(args []byte, reply *struct{}) error {
future := r.server.raft.Apply(args, 0)
return future.Error()
}
func (r *Raft) AddPeer(args string, reply *struct{}) error {
peer, err := net.ResolveTCPAddr("tcp", args)
if err != nil {
r.server.logger.Printf("[ERR] Failed to parse peer: %v", err)
return err
}
future := r.server.raft.AddPeer(peer)
return future.Error()
}
func (r *Raft) RemovePeer(args string, reply *struct{}) error {
peer, err := net.ResolveTCPAddr("tcp", args)
if err != nil {