fix store pacakge pass go vet

This commit is contained in:
Xiang Li 2013-10-21 12:37:22 -07:00
parent 94accfcb23
commit 6803d077b9
3 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ type CompareAndSwapCommand struct {
Key string `json:"key"`
Value string `json:"value"`
ExpireTime time.Time `json:"expireTime"`
PrevValue string `json: prevValue`
PrevIndex uint64 `json: prevIndex`
PrevValue string `json:"prevValue"`
PrevIndex uint64 `json:"prevIndex"`
}
// The name of the testAndSet command in the log

View File

@ -41,7 +41,7 @@ type Stats struct {
// Number of create requests
CreateSuccess uint64 `json:"createSuccess"`
CreateFail uint64 `json:createFail`
CreateFail uint64 `json:"createFail"`
// Number of testAndSet requests
CompareAndSwapSuccess uint64 `json:"compareAndSwapSuccess"`

View File

@ -9,7 +9,7 @@ func TestWatcher(t *testing.T) {
wh := s.WatcherHub
c, err := wh.watch("/foo", true, 1)
if err != nil {
t.Fatal("%v", err)
t.Fatalf("%v", err)
}
select {