Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zdb
Commits
c2aea025
Commit
c2aea025
authored
Aug 10, 2023
by
Vladimir Barsukov
Browse files
add ping try & fix least
parent
4d88c637
Changes
1
Hide whitespace changes
Inline
Side-by-side
pool.go
View file @
c2aea025
...
...
@@ -54,7 +54,7 @@ func New(ctx context.Context) *Pool {
TryOnSleep
:
time
.
Second
,
Balance
:
BalanceLeastConn
,
PingTimout
:
time
.
Second
*
5
,
PingTry
:
5
,
PingTry
:
5
,
}
}
...
...
@@ -84,7 +84,7 @@ func (d *Pool) WithContext(ctx context.Context) *Pool {
TryOnSleep
:
d
.
TryOnSleep
,
Balance
:
d
.
Balance
,
PingTimout
:
d
.
PingTimout
,
PingTry
:
d
.
PingTry
,
PingTry
:
d
.
PingTry
,
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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