Skip to content

Commit

Permalink
some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CriMDev97 committed Nov 30, 2023
1 parent f5ef17a commit 9a267b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
aws.profile=default

aws.region=eu-south-1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SqsMessageListenerContainerFactory<Object> defaultSqsListenerContainerFac
return SqsMessageListenerContainerFactory
.builder()
.configure(options -> options
//.acknowledgementMode(AcknowledgementMode.ON_SUCCESS)
.acknowledgementMode(AcknowledgementMode.ON_SUCCESS)
.maxConcurrentMessages(10)
.maxMessagesPerPoll(10))
.sqsAsyncClient(sqsAsyncClient())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public CompletableFuture<Void> pullFromAwsInternalQueue(@Payload String node, @H
.doOnNext(json -> log.info("payloadBody: {}, headers: {}, PullFromInternalQueue received input", node, headers))
.map(json -> Utility.jsonToObject(node, SignalEvent.class))
.map(signalEvent -> signalMapper.signalEventToSignal(signalEvent, correlationId))
.flatMap(signalService::signalServiceFlow)
.flatMap(signalEvent -> signalService.signalServiceFlow(signalEvent)
.contextWrite(Context.of(TRACE_ID_KEY, correlationId))
)
.then()
.toFuture();
}
Expand Down

0 comments on commit 9a267b9

Please sign in to comment.