Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Feb 7, 2024
1 parent c02abbd commit b482a8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/ytake/protoactor-go-persistence-pg"
)

type Actor struct {
Expand All @@ -34,7 +35,7 @@ func main() {
system := actor.NewActorSystem()
ctx := context.Background()
conn, _ := pgxpool.NewWithConfig(ctx, conf)
provider, _ := persistencepg.New(3, persistencepg.NewTable(), conn, system.Logger())
provider, _ := persistencepg.New(ctx, 3, persistencepg.NewTable(), conn, system.Logger())

props := actor.PropsFromProducer(func() actor.Actor { return &Actor{} },
actor.WithReceiverMiddleware(persistence.Using(provider)))
Expand Down

0 comments on commit b482a8b

Please sign in to comment.