Skip to content

Commit

Permalink
Fix typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
jblievremont committed Jul 4, 2023
1 parent e94c287 commit 5b29d4f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,21 @@ public ClientProgressMonitor asCoreMonitor() {

@Override
public void executeNonCancelableSection(Runnable nonCancelable) {
disableCancelation();
disableCancellation();
try {
nonCancelable.run();
} finally {
enableCancelation();
enableCancellation();
}
}

void enableCancelation() {
void enableCancellation() {
var progressReport = prepareProgressReport();
progressReport.setCancellable(true);
client.notifyProgress(new ProgressParams(progressToken, Either.forLeft(progressReport)));
}

void disableCancelation() {
void disableCancellation() {
var progressReport = prepareProgressReport();
progressReport.setCancellable(false);
client.notifyProgress(new ProgressParams(progressToken, Either.forLeft(progressReport)));
Expand Down

0 comments on commit 5b29d4f

Please sign in to comment.