Skip to content

Commit

Permalink
abort() -> cancelUpload()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-fa committed Aug 10, 2020
1 parent 070b0a7 commit 538b540
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void run() {
}
}

void abort() {
void cancelUpload() {
try {
runWithRetries(
callable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ public void abort(WriteChannel channel) {
throw new IllegalArgumentException("channel is not created by Storage");
}
BlobWriteChannel blobWriteChannel = (BlobWriteChannel) channel;
blobWriteChannel.abort();
blobWriteChannel.cancelUpload();
}

private BlobWriteChannel writer(BlobInfo blobInfo, BlobTargetOption... options) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ public void testAbort() {
WriteChannel writer =
new BlobWriteChannel(options, "http://example.com") {
@Override
void abort() {
void cancelUpload() {
isAborted.set(true);
}
};
Expand Down

0 comments on commit 538b540

Please sign in to comment.