refactor(peer.go) use ticker