Skip to content

Commit

Permalink
Add connection pooling to postgres db
Browse files Browse the repository at this point in the history
  • Loading branch information
badgersrus committed Apr 17, 2024
1 parent 261253b commit 9e8e651
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 22 deletions.
11 changes: 10 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ require (
github.com/gorilla/websocket v1.5.1
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/holiman/uint256 v1.2.4
github.com/jackc/pgx/v4 v4.18.3
github.com/jolestar/go-commons-pool/v2 v2.1.2
github.com/mattn/go-sqlite3 v1.14.22
github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416
Expand All @@ -34,7 +35,6 @@ require (
github.com/sanity-io/litter v1.5.5
github.com/status-im/keycard-go v0.3.2
github.com/stretchr/testify v1.9.0
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/tidwall/gjson v1.17.1
github.com/valyala/fasthttp v1.52.0
gitlab.com/NebulousLabs/fastrand v0.0.0-20181126182046-603482d69e40
Expand Down Expand Up @@ -100,6 +100,14 @@ require (
github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/huin/goupnp v1.3.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.14.3 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/jackc/puddle v1.3.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.7 // indirect
Expand Down Expand Up @@ -131,6 +139,7 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tklauser/go-sysconf v0.3.13 // indirect
Expand Down
Loading

0 comments on commit 9e8e651

Please sign in to comment.