Skip to content

Commit

Permalink
chore(deps): upgrade Go-Akt to v2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Nov 28, 2024
1 parent 42bf385 commit 7661d97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/lib/pq v1.10.9
github.com/ory/dockertest/v3 v3.11.0
github.com/stretchr/testify v1.10.0
github.com/tochemey/goakt/v2 v2.8.2
github.com/tochemey/goakt/v2 v2.9.0
github.com/travisjeffery/go-dynaport v1.0.0
go.uber.org/atomic v1.11.0
go.uber.org/goleak v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JT
github.com/tidwall/redcon v1.6.2 h1:5qfvrrybgtO85jnhSravmkZyC0D+7WstbfCs3MmPhow=
github.com/tidwall/redcon v1.6.2/go.mod h1:p5Wbsgeyi2VSTBWOcA5vRXrOb9arFTcU2+ZzFjqV75Y=
github.com/tinylib/msgp v1.1.8/go.mod h1:qkpG+2ldGg4xRFmx+jfTvZPxfGFhi64BcnL9vkCm/Tw=
github.com/tochemey/goakt/v2 v2.8.2 h1:2b7+V5dKDEJPRHLxn/QOxO4RDJY4mBmOtZg/d3Fzssk=
github.com/tochemey/goakt/v2 v2.8.2/go.mod h1:0SCESt8rvuYPcZHxAV7Ce6YbHHVnnZNpk9C/TtlzR+8=
github.com/tochemey/goakt/v2 v2.9.0 h1:msW3ZWPjuAROBBCrWJ/WkewzrPGrUu34NJVkK8ut4Rs=
github.com/tochemey/goakt/v2 v2.9.0/go.mod h1:0SCESt8rvuYPcZHxAV7Ce6YbHHVnnZNpk9C/TtlzR+8=
github.com/travisjeffery/go-dynaport v1.0.0 h1:m/qqf5AHgB96CMMSworIPyo1i7NZueRsnwdzdCJ8Ajw=
github.com/travisjeffery/go-dynaport v1.0.0/go.mod h1:0LHuDS4QAx+mAc4ri3WkQdavgVoBIZ7cE9ob17KIAJk=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
Expand Down
9 changes: 3 additions & 6 deletions internal/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ type postgres struct {

var _ Postgres = (*postgres)(nil)

const postgresDriver = "postgres"
const instrumentationName = "ego.events_store"

// New returns a store connecting to the given Postgres database.
func New(config *Config) Postgres {
postgres := new(postgres)
Expand All @@ -89,18 +86,18 @@ func (pg *postgres) Connect(ctx context.Context) error {
config.HealthCheckPeriod = pg.config.HealthCheckPeriod

// connect to the pool
dbpool, err := pgxpool.NewWithConfig(ctx, config)
pool, err := pgxpool.NewWithConfig(ctx, config)
if err != nil {
return fmt.Errorf("failed to create the connection pool: %w", err)
}

// let us test the connection
if err := dbpool.Ping(ctx); err != nil {
if err := pool.Ping(ctx); err != nil {
return fmt.Errorf("failed to ping the database connection: %w", err)
}

// set the db handle
pg.pool = dbpool
pg.pool = pool
return nil
}

Expand Down

0 comments on commit 7661d97

Please sign in to comment.