mirror of
https://github.com/ferdzo/fs.git
synced 2026-04-05 08:26:28 +00:00
Copilot suggestions fixed
This commit is contained in:
@@ -390,7 +390,10 @@ func ensureDataPathOffline(dataPath string) error {
|
||||
}
|
||||
return err
|
||||
}
|
||||
db, err := bolt.Open(dbPath, 0o600, &bolt.Options{Timeout: 100 * time.Millisecond})
|
||||
db, err := bolt.Open(dbPath, 0o600, &bolt.Options{
|
||||
Timeout: 100 * time.Millisecond,
|
||||
ReadOnly: true,
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("data path appears in use (metadata.db locked): %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user