fix update PUT handler

This commit is contained in:
Xiang Li
2013-10-14 22:22:23 -07:00
parent 811d172a54
commit 545f8ed6a1
8 changed files with 109 additions and 124 deletions

View File

@ -254,10 +254,11 @@ func (s *Server) SpeedTestHandler(w http.ResponseWriter, req *http.Request) erro
for i := 0; i < count; i++ {
go func() {
for j := 0; j < 10; j++ {
c := &store.UpdateCommand{
c := &store.CreateCommand{
Key: "foo",
Value: "bar",
ExpireTime: time.Unix(0, 0),
Force: true,
}
s.peerServer.RaftServer().Do(c)
}