Skip to content

Commit

Permalink
Merge pull request #8279 from gyuho/aaa
Browse files Browse the repository at this point in the history
contrib/raftexample: use bytes.Buffer.String (no 'string()')
  • Loading branch information
gyuho committed Jul 18, 2017
2 parents d8481c9 + f78498b commit 9dc6593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/raftexample/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *kvstore) Propose(k string, v string) {
if err := gob.NewEncoder(&buf).Encode(kv{k, v}); err != nil {
log.Fatal(err)
}
s.proposeC <- string(buf.Bytes())
s.proposeC <- buf.String()
}

func (s *kvstore) readCommits(commitC <-chan *string, errorC <-chan error) {
Expand Down

0 comments on commit 9dc6593

Please sign in to comment.