apply command on follower when commitIndex changes