Skip to content
Snippets Groups Projects
Commit d32d6f50 authored by OZGCloud's avatar OZGCloud
Browse files

reduce chunk size

parent 7a23b628
Branches
Tags
No related merge requests found
...@@ -58,6 +58,7 @@ public class BinaryFileUploadStreamObserver<ReqT, R> implements ClientResponseOb ...@@ -58,6 +58,7 @@ public class BinaryFileUploadStreamObserver<ReqT, R> implements ClientResponseOb
@Override @Override
public void onError(Throwable t) { public void onError(Throwable t) {
LOG.error("Error on uploading file. Completing Future.", t);
future.completeExceptionally(t); future.completeExceptionally(t);
} }
......
...@@ -48,7 +48,7 @@ import lombok.extern.log4j.Log4j2; ...@@ -48,7 +48,7 @@ import lombok.extern.log4j.Log4j2;
@NoArgsConstructor(access = AccessLevel.PRIVATE) @NoArgsConstructor(access = AccessLevel.PRIVATE)
public class GrpcFileUploadUtils { public class GrpcFileUploadUtils {
static final int CHUNK_SIZE = 255 * 1024; static final int CHUNK_SIZE = 4 * 1024;
/* /*
* Q = Request Type; S = Response Type * Q = Request Type; S = Response Type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment