mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-13 19:29:58 -05:00
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
This commit is contained in:
@@ -405,7 +405,7 @@ func (s *SqlServer) Connector(c Connection) (driver.Connector, error) {
|
||||
cfg.Apply(mysql.BeforeConnect(func(ctx context.Context, cfg *mysql.Config) error {
|
||||
// TODO: This could be more robust if we sniffed it on first connect.
|
||||
const numAttemptsGoLibraryMakes = 3
|
||||
if attempt, ok := incrementConnectRetryAttempts(ctx); ok && attempt < numAttemptsGoLibraryMakes {
|
||||
if attempt, ok := incrementConnectRetryAttempts(ctx); ok && attempt < numAttemptsGoLibraryMakes {
|
||||
return driver.ErrBadConn
|
||||
}
|
||||
return nil
|
||||
@@ -460,6 +460,7 @@ func ConnectDB(user, password, name, host string, port int, params map[string]st
|
||||
}
|
||||
|
||||
type connectRetryAttemptKeyType int
|
||||
|
||||
var connectRetryAttemptKey connectRetryAttemptKeyType
|
||||
|
||||
// The database/sql package in Go takes connections out of a
|
||||
|
||||
Reference in New Issue
Block a user