Skip to content

Commit

Permalink
注释上传/下载进度日志代码
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed Sep 25, 2021
1 parent 6d79805 commit f1d8ec9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void onProgress(int progress, long currentSize, long totalSize) {
return;
}
try {
LogUtil.logDownProgress(progress, currentSize, totalSize);
//LogUtil.logDownProgress(progress, currentSize, totalSize);
progressConsumer.accept(new Progress(progress, currentSize, totalSize));
} catch (Throwable t) {
fail(t);
Expand Down Expand Up @@ -194,7 +194,7 @@ public void onProgress(int progress, long currentSize, long totalSize) {
if (done) {
return;
}
LogUtil.logDownProgress(progress, currentSize, totalSize);
//LogUtil.logDownProgress(progress, currentSize, totalSize);
offer(new Progress(progress,currentSize,totalSize));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ object ClassHelper {
return;
}
try {
LogUtil.logDownProgress(progress, currentSize, totalSize);
//LogUtil.logDownProgress(progress, currentSize, totalSize);
progressConsumer.accept(new Progress(progress, currentSize, totalSize));
} catch (Throwable t) {
fail(t);
Expand Down Expand Up @@ -697,7 +697,7 @@ object ClassHelper {
if (done) {
return;
}
LogUtil.logDownProgress(progress, currentSize, totalSize);
//LogUtil.logDownProgress(progress, currentSize, totalSize);
offer(new Progress(progress,currentSize,totalSize));
}
Expand Down
2 changes: 1 addition & 1 deletion rxhttp/src/main/java/rxhttp/CallFactoryToAwait.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun <T> CallFactory.toSyncDownload(
val parser = SuspendStreamParser(osFactory)
if (progressCallback != null) {
parser.progress = { progress, currentSize, totalSize ->
LogUtil.logDownProgress(progress, currentSize, totalSize)
//LogUtil.logDownProgress(progress, currentSize, totalSize)
val p = ProgressT<T>(progress, currentSize, totalSize)
progressCallback(p)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void write(Buffer source, long byteCount) throws IOException {

private void updateProgress(int progress, long currentSize, long totalSize) {
if (callback == null) return;
LogUtil.logUpProgress(progress, currentSize, totalSize);
//LogUtil.logUpProgress(progress, currentSize, totalSize);
callback.onProgress(progress, currentSize, totalSize);
}
}

0 comments on commit f1d8ec9

Please sign in to comment.