fix pointer for readYourWrites

move-migrations-to-option v0.1.4
Mason Payne 2024-08-22 00:54:43 -06:00
parent 208348206a
commit 59a0f52883
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ 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,