Skip to content

Commit

Permalink
optimize performance (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mkabaka authored Feb 1, 2021
1 parent 87bc9b8 commit 8771cb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public class HttpRequestBaseImpl implements HttpRequestBase {
private final HttpMethod method;
private final HttpHeaders headers = new Http1HeadersImpl();

protected volatile Consumer<Handle> handle;
protected volatile Handler handler;
private volatile int readTimeout;
private volatile boolean useUriEncode;
protected Consumer<Handle> handle;
protected Handler handler;
private int readTimeout;
private boolean useUriEncode;

protected HttpRequestBaseImpl(HttpClientBuilder builder,
HttpMethod method,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public synchronized NettyHttpClient applyChannelPoolOptions(ChannelPoolOptions o
}

@Override
public NettyHttpClient applyChannelPoolOptions(Map<SocketAddress, ChannelPoolOptions> options) {
public synchronized NettyHttpClient applyChannelPoolOptions(Map<SocketAddress, ChannelPoolOptions> options) {
if (options == null || options.isEmpty()) {
return this;
}
Expand Down

0 comments on commit 8771cb7

Please sign in to comment.