Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
bc1e1e28
Commit
bc1e1e28
authored
Mar 09, 2021
by
wangwx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comments
parent
22d0b82a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client.go
database/kv/etcd/v3/client.go
+3
-3
No files found.
database/kv/etcd/v3/client.go
View file @
bc1e1e28
...
...
@@ -33,12 +33,12 @@ import (
var
(
// ErrNilETCDV3Client raw client nil
ErrNilETCDV3Client
=
perrors
.
New
(
"etcd raw
C
lient is nil"
)
// full describe the ERR
ErrNilETCDV3Client
=
perrors
.
New
(
"etcd raw
c
lient is nil"
)
// full describe the ERR
// ErrKVPairNotFound not found key
ErrKVPairNotFound
=
perrors
.
New
(
"k/v pair not found"
)
)
// NewConfigClient create new
c
lient
// NewConfigClient create new
C
lient
func
NewConfigClient
(
opts
...
Option
)
*
Client
{
options
:=
&
Options
{
Heartbeat
:
1
,
// default Heartbeat
...
...
@@ -184,7 +184,7 @@ func (c *Client) keepSessionLoop(s *concurrency.Session) {
for
{
select
{
case
<-
c
.
Done
()
:
//
c
lient be stopped, will clean the client hold resources
//
C
lient be stopped, will clean the client hold resources
return
case
<-
s
.
Done
()
:
log
.
Print
(
"etcd server stopped"
)
...
...
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