refactor(peer.go) use ticker
Merge pull request #135 from goraft/use_ticker

refactor(peer.go) use ticker