Commit c2aea025 authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

add ping try & fix least

parent 4d88c637
......@@ -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,
}
}
......
Supports Markdown
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