We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e562a commit 66d884cCopy full SHA for 66d884c
1 file changed
src/archivist/recorder/index.js
@@ -12,11 +12,8 @@ export default class Recorder {
12
return Promise.all([ this.versionsRepository.initialize(), this.snapshotsRepository.initialize() ]);
13
}
14
15
- async finalize() {
16
- // Close repositories sequentially to avoid race conditions when both repositories use the same MongoDB connection (same server/database).
17
- // Parallel closing can cause "Operation interrupted because client was closed" errors, especially on Windows.
18
- await this.versionsRepository.finalize();
19
- await this.snapshotsRepository.finalize();
+ finalize() {
+ return Promise.all([ this.versionsRepository.finalize(), this.snapshotsRepository.finalize() ]);
20
21
22
getLatestSnapshot(terms, sourceDocumentId) {
0 commit comments