fix some options settings

move-migrations-to-option v0.1.5
Mason Payne 2024-08-22 00:56:45 -06:00
parent 59a0f52883
commit 9d7879fff4
1 changed files with 2 additions and 2 deletions

View File

@ -62,11 +62,11 @@ func NewLibSqlDB(primaryUrl string, migrationFiles embed.FS, opts ...Options) (*
}
if l.readYourWrites != nil {
lsOpts = append(lsOpts, libsql.WithReadYourWrites(&l.readYourWrites))
lsOpts = append(lsOpts, libsql.WithReadYourWrites(*l.readYourWrites))
}
connector, err := libsql.NewEmbeddedReplicaConnector(dbPath, primaryUrl,
lsOpts,
lsOpts...,
)
if err != nil {
return nil, fmt.Errorf("error creating connector | %w", err)