Skip to content

Commit

Permalink
Fix log line in the CLI for the request proto for Await
Browse files Browse the repository at this point in the history
  • Loading branch information
Jille committed Sep 8, 2020
1 parent 9c54fe3 commit bfb0852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Commands: add_nonvoter, add_voter, applied_index, apply_log, await, barrier, dem
$ raftadmin 127.0.0.1:50051 add_voter serverb 127.0.0.1:50052 0
Invoking AddVoter(id: "serverb" address: "127.0.0.1:50052")
Response: operation_token: "4a86d2efa417af281ac540bfede8fcb735e0b224"
Invoking Await(id: "serverb" address: "127.0.0.1:50052")
Invoking Await(operation_token: "4a86d2efa417af281ac540bfede8fcb735e0b224")
Response: index: 3
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/raftadmin/raftadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func do() error {
// This method returned a future. We should call Await to get the result, and then Forget to free up the memory of the server.
if f, ok := resp.(*pb.Future); ok {
c := pb.NewRaftAdminClient(conn)
log.Printf("Invoking Await(%s)", prototext.Format(req.Interface()))
log.Printf("Invoking Await(%s)", prototext.Format(f))
resp, err := c.Await(ctx, f)
if err != nil {
return err
Expand Down

0 comments on commit bfb0852

Please sign in to comment.