Commit 92712e0f authored by ztelur's avatar ztelur

format

parent 62b6716d
...@@ -19,9 +19,9 @@ package etcdv3 ...@@ -19,9 +19,9 @@ package etcdv3
import ( import (
"context" "context"
"log"
"sync" "sync"
"time" "time"
"log"
) )
import ( import (
...@@ -31,7 +31,6 @@ import ( ...@@ -31,7 +31,6 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
) )
const ( const (
// ConnDelay connection delay // ConnDelay connection delay
ConnDelay = 3 ConnDelay = 3
...@@ -47,7 +46,7 @@ var ( ...@@ -47,7 +46,7 @@ var (
// ErrNilETCDV3Client raw client nil // ErrNilETCDV3Client raw client nil
ErrNilETCDV3Client = perrors.New("etcd raw client is nil") // full describe the ERR ErrNilETCDV3Client = perrors.New("etcd raw client is nil") // full describe the ERR
// ErrKVPairNotFound not found key // ErrKVPairNotFound not found key
ErrKVPairNotFound = perrors.New("k/v pair not found") ErrKVPairNotFound = perrors.New("k/v pair not found")
) )
// Options client configuration // Options client configuration
...@@ -90,7 +89,6 @@ func WithHeartbeat(heartbeat int) Option { ...@@ -90,7 +89,6 @@ func WithHeartbeat(heartbeat int) Option {
} }
} }
// NewConfigClient create new Client // NewConfigClient create new Client
func NewConfigClient(opts ...Option) *Client { func NewConfigClient(opts ...Option) *Client {
options := &Options{ options := &Options{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment