mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-28 03:11:01 +00:00
[chore]: Bump github.com/jackc/pgconn from 1.14.0 to 1.14.1 (#2024)
This commit is contained in:
parent
b7891bb462
commit
8b71567f9e
6 changed files with 25 additions and 15 deletions
2
go.mod
2
go.mod
|
@ -32,7 +32,7 @@ require (
|
||||||
github.com/gorilla/feeds v1.1.1
|
github.com/gorilla/feeds v1.1.1
|
||||||
github.com/gorilla/websocket v1.5.0
|
github.com/gorilla/websocket v1.5.0
|
||||||
github.com/h2non/filetype v1.1.3
|
github.com/h2non/filetype v1.1.3
|
||||||
github.com/jackc/pgconn v1.14.0
|
github.com/jackc/pgconn v1.14.1
|
||||||
github.com/jackc/pgx/v5 v5.4.2
|
github.com/jackc/pgx/v5 v5.4.2
|
||||||
github.com/microcosm-cc/bluemonday v1.0.24
|
github.com/microcosm-cc/bluemonday v1.0.24
|
||||||
github.com/miekg/dns v1.1.55
|
github.com/miekg/dns v1.1.55
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -361,8 +361,8 @@ github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW
|
||||||
github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s=
|
github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s=
|
||||||
github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o=
|
github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o=
|
||||||
github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY=
|
github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY=
|
||||||
github.com/jackc/pgconn v1.14.0 h1:vrbA9Ud87g6JdFWkHTJXppVce58qPIdP7N8y0Ml/A7Q=
|
github.com/jackc/pgconn v1.14.1 h1:smbxIaZA08n6YuxEX1sDyjV/qkbtUtkH20qLkR9MUR4=
|
||||||
github.com/jackc/pgconn v1.14.0/go.mod h1:9mBNlny0UvkgJdCDvdVHYSjI+8tD2rnKK69Wz8ti++E=
|
github.com/jackc/pgconn v1.14.1/go.mod h1:9mBNlny0UvkgJdCDvdVHYSjI+8tD2rnKK69Wz8ti++E=
|
||||||
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
|
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
|
||||||
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
|
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
|
||||||
github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE=
|
github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE=
|
||||||
|
|
6
vendor/github.com/jackc/pgconn/CHANGELOG.md
generated
vendored
6
vendor/github.com/jackc/pgconn/CHANGELOG.md
generated
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
# 1.14.1 (July 19, 2023)
|
||||||
|
|
||||||
|
* Fix: Enable failover efforts when pg_hba.conf disallows non-ssl connections (Brandon Kauffman)
|
||||||
|
* Fix: connect_timeout is not obeyed for sslmode=allow|prefer (smaher-edb)
|
||||||
|
* Optimize redundant pgpass parsing in case password is explicitly set (Aleksandr Alekseev)
|
||||||
|
|
||||||
# 1.14.0 (February 11, 2023)
|
# 1.14.0 (February 11, 2023)
|
||||||
|
|
||||||
* Fix: each connection attempt to new node gets own timeout (Nathan Giardina)
|
* Fix: each connection attempt to new node gets own timeout (Nathan Giardina)
|
||||||
|
|
2
vendor/github.com/jackc/pgconn/config.go
generated
vendored
2
vendor/github.com/jackc/pgconn/config.go
generated
vendored
|
@ -366,9 +366,9 @@ func ParseConfigWithOptions(connString string, options ParseConfigOptions) (*Con
|
||||||
config.TLSConfig = fallbacks[0].TLSConfig
|
config.TLSConfig = fallbacks[0].TLSConfig
|
||||||
config.Fallbacks = fallbacks[1:]
|
config.Fallbacks = fallbacks[1:]
|
||||||
|
|
||||||
|
if config.Password == "" {
|
||||||
passfile, err := pgpassfile.ReadPassfile(settings["passfile"])
|
passfile, err := pgpassfile.ReadPassfile(settings["passfile"])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if config.Password == "" {
|
|
||||||
host := config.Host
|
host := config.Host
|
||||||
if network, _ := NetworkAddress(config.Host, config.Port); network == "unix" {
|
if network, _ := NetworkAddress(config.Host, config.Port); network == "unix" {
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
|
|
8
vendor/github.com/jackc/pgconn/pgconn.go
generated
vendored
8
vendor/github.com/jackc/pgconn/pgconn.go
generated
vendored
|
@ -156,12 +156,15 @@ func ConnectConfig(octx context.Context, config *Config) (pgConn *PgConn, err er
|
||||||
|
|
||||||
foundBestServer := false
|
foundBestServer := false
|
||||||
var fallbackConfig *FallbackConfig
|
var fallbackConfig *FallbackConfig
|
||||||
for _, fc := range fallbackConfigs {
|
for i, fc := range fallbackConfigs {
|
||||||
// ConnectTimeout restricts the whole connection process.
|
// ConnectTimeout restricts the whole connection process.
|
||||||
if config.ConnectTimeout != 0 {
|
if config.ConnectTimeout != 0 {
|
||||||
|
// create new context first time or when previous host was different
|
||||||
|
if i == 0 || (fallbackConfigs[i].Host != fallbackConfigs[i-1].Host) {
|
||||||
var cancel context.CancelFunc
|
var cancel context.CancelFunc
|
||||||
ctx, cancel = context.WithTimeout(octx, config.ConnectTimeout)
|
ctx, cancel = context.WithTimeout(octx, config.ConnectTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ctx = octx
|
ctx = octx
|
||||||
}
|
}
|
||||||
|
@ -176,7 +179,7 @@ func ConnectConfig(octx context.Context, config *Config) (pgConn *PgConn, err er
|
||||||
const ERRCODE_INVALID_CATALOG_NAME = "3D000" // db does not exist
|
const ERRCODE_INVALID_CATALOG_NAME = "3D000" // db does not exist
|
||||||
const ERRCODE_INSUFFICIENT_PRIVILEGE = "42501" // missing connect privilege
|
const ERRCODE_INSUFFICIENT_PRIVILEGE = "42501" // missing connect privilege
|
||||||
if pgerr.Code == ERRCODE_INVALID_PASSWORD ||
|
if pgerr.Code == ERRCODE_INVALID_PASSWORD ||
|
||||||
pgerr.Code == ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION ||
|
pgerr.Code == ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION && fc.TLSConfig != nil ||
|
||||||
pgerr.Code == ERRCODE_INVALID_CATALOG_NAME ||
|
pgerr.Code == ERRCODE_INVALID_CATALOG_NAME ||
|
||||||
pgerr.Code == ERRCODE_INSUFFICIENT_PRIVILEGE {
|
pgerr.Code == ERRCODE_INSUFFICIENT_PRIVILEGE {
|
||||||
break
|
break
|
||||||
|
@ -599,6 +602,7 @@ func (pgConn *PgConn) PID() uint32 {
|
||||||
// TxStatus returns the current TxStatus as reported by the server in the ReadyForQuery message.
|
// TxStatus returns the current TxStatus as reported by the server in the ReadyForQuery message.
|
||||||
//
|
//
|
||||||
// Possible return values:
|
// Possible return values:
|
||||||
|
//
|
||||||
// 'I' - idle / not in transaction
|
// 'I' - idle / not in transaction
|
||||||
// 'T' - in a transaction
|
// 'T' - in a transaction
|
||||||
// 'E' - in a failed transaction
|
// 'E' - in a failed transaction
|
||||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -318,7 +318,7 @@ github.com/inconshreveable/mousetrap
|
||||||
# github.com/jackc/chunkreader/v2 v2.0.1
|
# github.com/jackc/chunkreader/v2 v2.0.1
|
||||||
## explicit; go 1.12
|
## explicit; go 1.12
|
||||||
github.com/jackc/chunkreader/v2
|
github.com/jackc/chunkreader/v2
|
||||||
# github.com/jackc/pgconn v1.14.0
|
# github.com/jackc/pgconn v1.14.1
|
||||||
## explicit; go 1.12
|
## explicit; go 1.12
|
||||||
github.com/jackc/pgconn
|
github.com/jackc/pgconn
|
||||||
github.com/jackc/pgconn/internal/ctxwatch
|
github.com/jackc/pgconn/internal/ctxwatch
|
||||||
|
|
Loading…
Reference in a new issue