Consistent lock timeouts.

This commit is contained in:
Nuno Cruces
2023-06-12 13:04:37 +01:00
parent 04037a75ed
commit eb8d9b95fd
3 changed files with 6 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ var (
)
// Create creates an immutable database from reader.
// The caller should insure that data from reader does not mutate,
// The caller should ensure that data from reader does not mutate,
// otherwise SQLite might return incorrect query results and/or [sqlite3.CORRUPT] errors.
func Create(name string, reader SizeReaderAt) {
readerMtx.Lock()

View File

@@ -37,7 +37,7 @@ func (readerVFS) FullPathname(name string) (string, error) {
type readerFile struct{ SizeReaderAt }
func (r readerFile) Close() error {
func (readerFile) Close() error {
return nil
}