Browse Source

contrib/recipes: fix govet and goword warnings

Anthony Romano 9 years ago
parent
commit
016be1ef31
2 changed files with 2 additions and 2 deletions
  1. 1 1
      contrib/recipes/double_barrier.go
  2. 1 1
      contrib/recipes/key.go

+ 1 - 1
contrib/recipes/double_barrier.go

@@ -117,7 +117,7 @@ func (b *DoubleBarrier) Leave() error {
 	}
 
 	// delete self and wait on lowest process
-	if err := b.myKey.Delete(); err != nil {
+	if err = b.myKey.Delete(); err != nil {
 		return err
 	}
 

+ 1 - 1
contrib/recipes/key.go

@@ -24,7 +24,7 @@ import (
 	"golang.org/x/net/context"
 )
 
-// Key is a key/revision pair created by the client and stored on etcd
+// RemoteKV is a key/revision pair created by the client and stored on etcd
 type RemoteKV struct {
 	kv  v3.KV
 	key string