change func para due to the api change in go-raft