Skip to content

Commit

Permalink
chore: upgrade go libs
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 23, 2024
1 parent 290120b commit 0cff551
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/alitto/pond v1.9.2
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10
github.com/bluele/gcache v0.0.2
github.com/formancehq/go-libs/v2 v2.1.3-0.20241015114549-ea3d600bc087
github.com/formancehq/go-libs/v2 v2.1.3-0.20241017104005-ad844342baae
github.com/formancehq/stack/ledger/client v0.0.0-00010101000000-000000000000
github.com/go-chi/chi/v5 v5.1.0
github.com/go-chi/cors v1.2.1
Expand Down Expand Up @@ -109,14 +109,17 @@ require (
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/pgx/v5 v5.7.1 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
github.com/jcmturner/gofork v1.7.6 // indirect
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/lithammer/shortuuid/v3 v3.0.7 // indirect
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/formancehq/go-libs/v2 v2.1.3-0.20241015114549-ea3d600bc087 h1:RT3kp/jbBmKfNCRkLlNiKZk5+BEbkHk4PGU+k1gWFlo=
github.com/formancehq/go-libs/v2 v2.1.3-0.20241015114549-ea3d600bc087/go.mod h1:NTZO1uTcthk+OKpu+DGoZRkOSV8RVYHZdx0c4wVq5To=
github.com/formancehq/go-libs/v2 v2.1.3-0.20241017101710-5a4a6a4cb50d h1:tZZo5yypip02aAkbkp6kGDC8Lvo032DlE/0yVhu8iNY=
github.com/formancehq/go-libs/v2 v2.1.3-0.20241017101710-5a4a6a4cb50d/go.mod h1:LgxayMN6wgAQbkB3ioBDTHOVMKp1rC6Q55M1CvG44xY=
github.com/formancehq/go-libs/v2 v2.1.3-0.20241017104005-ad844342baae h1:29GM6mMhC/7mVsbZJ6qgvQEGAcLSNXwWD3DNKo2Kikk=
github.com/formancehq/go-libs/v2 v2.1.3-0.20241017104005-ad844342baae/go.mod h1:LgxayMN6wgAQbkB3ioBDTHOVMKp1rC6Q55M1CvG44xY=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec=
Expand Down
2 changes: 1 addition & 1 deletion internal/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (lt LogType) Value() (driver.Value, error) {
}

func (lt *LogType) Scan(src interface{}) error {
*lt = LogTypeFromString(string(src.([]byte)))
*lt = LogTypeFromString(src.(string))
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion internal/storage/ledger/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestMain(m *testing.M) {
ret := pgtesting.CreatePostgresServer(t, docker.NewPool(t, logging.Testing()), pgtesting.WithExtension("pgcrypto"))

bunDB.LoadAsync(func() *bun.DB {
db, err := sql.Open("postgres", ret.GetDSN())
db, err := sql.Open("pgx", ret.GetDSN())
require.NoError(t, err)

bunDB := bun.NewDB(db, pgdialect.New())
Expand Down

0 comments on commit 0cff551

Please sign in to comment.