Exemplo n.º 1
0
        public Raft(string nodefile, IComms comms)
        {
            inputQueue  = comms.StartIncoming();
            outputQueue = comms.StartOutgoing();
            _host       = comms.GetLocalHost();

            electionWaitPeriod = 1500 + GetRandomWaitPeriod();

            LoadPresetNodes(nodefile);
        }