raft: int64 -> uint64

fix #1175
It is weird that it returns `uint64`, but always converts to `int64` when using.