Skip to content

Commit

Permalink
feat: native Spring Web workloads (aws#335) - polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
deki committed Jan 25, 2024
1 parent 8f0fc79 commit 1bd5f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private static HttpServletRequest generateRequest2(String request, Context lambd
ServerlessHttpServletRequest httpRequest = new ServerlessHttpServletRequest(servletContext,
v2Request.getRequestContext().getHttp().getMethod(), v2Request.getRequestContext().getHttp().getPath());

v2Request.getHeaders().forEach((k,v) -> httpRequest.setHeader(k, v));
v2Request.getHeaders().forEach(httpRequest::setHeader);

if (StringUtils.hasText(v2Request.getBody())) {
httpRequest.setContentType("application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public final class AwsSpringWebCustomRuntimeEventLoop implements SmartLifecycle

private volatile boolean running;

private ExecutorService executor = Executors.newSingleThreadExecutor();
private final ExecutorService executor = Executors.newSingleThreadExecutor();

public AwsSpringWebCustomRuntimeEventLoop(ServletWebServerApplicationContext applicationContext) {
this.applicationContext = applicationContext;
Expand Down

0 comments on commit 1bd5f72

Please sign in to comment.