Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gostnops
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
gostnops
Commits
92712e0f
Commit
92712e0f
authored
Feb 06, 2021
by
ztelur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
62b6716d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
client.go
remoting/etcd3/client.go
+2
-4
No files found.
remoting/etcd3/client.go
View file @
92712e0f
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment