Skip to content

Instantly share code, notes, and snippets.

@Hoverbear
Created July 22, 2015 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hoverbear/232cc787e004699b5ae1 to your computer and use it in GitHub Desktop.
Save Hoverbear/232cc787e004699b5ae1 to your computer and use it in GitHub Desktop.
hoverbear  ~  git  raft  RUST_LOG=raft=debug cargo run --example register put foo 127.0.0.1:8080 127.0.0.1:8081 127.0.0.1:8082   replica_message
Running `target/debug/examples/register put foo 127.0.0.1:8080 127.0.0.1:8081 127.0.0.1:8082`
"127.0.0.1:8080"
"127.0.0.1:8081"
"127.0.0.1:8082"
{V4(127.0.0.1:8080), V4(127.0.0.1:8082), V4(127.0.0.1:8081)}
DEBUG:raft::client: connecting to potential leader 127.0.0.1:8080
DEBUG:raft::client: connected
DEBUG:raft::client: awaiting response from connection
DEBUG:raft::client: received response NotLeader
DEBUG:raft::client: had existing connection Ok(V4(127.0.0.1:8082))
DEBUG:raft::client: awaiting response from connection
DEBUG:raft::client: received response Success
[102, 111, 111]
hoverbear  ~  git  raft  RUST_LOG=raft=debug cargo run --example register get 127.0.0.1:8080 127.0.0.1:8081 127.0.0.1:8082   replica_message
Running `target/debug/examples/register get 127.0.0.1:8080 127.0.0.1:8081 127.0.0.1:8082`
"127.0.0.1:8080"
"127.0.0.1:8081"
"127.0.0.1:8082"
{V4(127.0.0.1:8080), V4(127.0.0.1:8082), V4(127.0.0.1:8081)}
DEBUG:raft::client: connecting to potential leader 127.0.0.1:8080
DEBUG:raft::client: connected
DEBUG:raft::client: awaiting response from connection
DEBUG:raft::client: received response NotLeader
DEBUG:raft::client: had existing connection Ok(V4(127.0.0.1:8082))
DEBUG:raft::client: awaiting response from connection
DEBUG:raft::client: received response Success
[102, 111, 111]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment