Skip to content

Commit

Permalink
Format after update
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Oct 12, 2023
1 parent b240c0d commit d67d574
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/backend/db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,8 @@ export abstract class Database {
// we may have concurrent inserts, or partially inserted data,
// where a request aborted
if (isUniqueViolationError(err)) {
recordedMeasurements += await this.recordMeasurementsFromBatch(
batchedValues
);
recordedMeasurements +=
await this.recordMeasurementsFromBatch(batchedValues);
} else {
throw err;
}
Expand All @@ -1114,17 +1113,15 @@ export abstract class Database {
recordedMeasurements += result;
} catch (err) {
if (isUniqueViolationError(err)) {
recordedMeasurements += await this.recordMeasurementsFromBatch(
batchedValues
);
recordedMeasurements +=
await this.recordMeasurementsFromBatch(batchedValues);
}
}
batchedValues = rest;
}

recordedMeasurements += await this.recordMeasurementsFromBatch(
batchedValues
);
recordedMeasurements +=
await this.recordMeasurementsFromBatch(batchedValues);

return recordedMeasurements;
}
Expand Down

0 comments on commit d67d574

Please sign in to comment.