Skip to content

Commit

Permalink
fixup!: remove duplicated local this._meter.getProcessor()
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Dec 4, 2020
1 parent f617333 commit 9a68d15
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions packages/opentelemetry-metrics/src/export/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@ export class PushController extends Controller {
await this._meter.collect();
processor.finish();
return new Promise(resolve => {
this._exporter.export(
this._meter.getProcessor().checkPointSet(),
result => {
if (result.code !== ExportResultCode.SUCCESS) {
globalErrorHandler(
result.error ??
new Error('PushController: export failed in _collect')
);
}
resolve();
this._exporter.export(processor.checkPointSet(), result => {
if (result.code !== ExportResultCode.SUCCESS) {
globalErrorHandler(
result.error ??
new Error('PushController: export failed in _collect')
);
}
);
resolve();
});
});
}
}

0 comments on commit 9a68d15

Please sign in to comment.