Skip to content

Commit 3ba2471

Browse files
committed
fixup: update allow abort methods so there's no overlap with the class member and global
1 parent b8cf1cf commit 3ba2471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schema-analyzer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ export class SchemaAnalyzer {
517517
}
518518
}
519519

520-
allowAbort() {
520+
allowAbortDuringAnalysis() {
521521
// Allow aborting the analysis.
522522
if (this.fieldAndTypeAnalysisCounter++ % ALLOW_ABORT_INTERVAL_COUNT === 0) {
523523
allowAbort();
@@ -551,7 +551,7 @@ export class SchemaAnalyzer {
551551
* Note: This mutates the `schema` argument.
552552
*/
553553
const addToType = async(path: string[], value: BSONValue, schema: SchemaAnalysisFieldTypes) => {
554-
await this.allowAbort();
554+
await this.allowAbortDuringAnalysis();
555555
const bsonType = getBSONType(value);
556556
// If semantic type detection is enabled, the type is the semantic type
557557
// or the original bson type if no semantic type was detected. If disabled,

0 commit comments

Comments
 (0)