goraft/raft — pull request #195 by xiangli-cmu (2014-03-09 23:55:45+00:00)
Title: fix(server.go) fix potential deadlock when removing nodes

When server entries removePeer, it is holding log write lock. peer.stopHeartbeat might also need to acquire log read lock to finish. We need to make peer.stopHeartbeat non-blocking to fix the deadlock. Also actually there is no need to wait for the peer go-routine to stop.