X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/5d99dbf06a14904944f5593c63705934bdfdcfb7..d54215aea2a7321ab0f2dc7b0042fea2b7ff5df5:/paxos.h diff --git a/paxos.h b/paxos.h index 186daab..8c9fc8f 100644 --- a/paxos.h +++ b/paxos.h @@ -7,10 +7,9 @@ #include "log.h" using prepareres = paxos_protocol::prepareres; - -using node_t = string; -using nodes_t = vector; -using value_t = string; +using node_t = paxos_protocol::node_t; +using nodes_t = paxos_protocol::nodes_t; +using value_t = paxos_protocol::value_t; class paxos_change { public: @@ -29,7 +28,7 @@ class proposer_acceptor { paxos_change *delegate; node_t me; - rpcs pxs = {(uint32_t)stoi(me)}; + rpcs pxs{(in_port_t)stoi(me)}; bool break1 = false; bool break2 = false;