wal

I think it would be more clear to have a State field on raft and assign it `state` here. I seem to remember trying to work that in but I'm not sure why I backed it out. Maybe because I was trying to add it while making other changes and the diff got confusing.