contrib/recipes: fix govet and goword warnings
parent
74b13aab61
commit
016be1ef31
|
@ -117,7 +117,7 @@ func (b *DoubleBarrier) Leave() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete self and wait on lowest process
|
// delete self and wait on lowest process
|
||||||
if err := b.myKey.Delete(); err != nil {
|
if err = b.myKey.Delete(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import (
|
||||||
"golang.org/x/net/context"
|
"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 {
|
type RemoteKV struct {
|
||||||
kv v3.KV
|
kv v3.KV
|
||||||
key string
|
key string
|
||||||
|
|
Loading…
Reference in New Issue