From d035dfc1a4bce4ac6e1cb1c34d771f679c91e8e5 Mon Sep 17 00:00:00 2001 From: Vemparala Surya Vamsi Date: Thu, 13 Mar 2025 11:47:33 +0530 Subject: [PATCH] reduced critical path to not include populatedExecuteActionDTOMono --- .../solutions/ce/ActionExecutionSolutionCEImpl.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java index 70d465104575..4558673fa523 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java @@ -205,12 +205,8 @@ protected Mono populateAndExecuteAction( Mono populatedExecuteActionDTOMono = newActionMono.flatMap(newAction -> populateExecuteActionDTO(executeActionDTO, newAction)); - Mono environmentIdMono = Mono.zip(newActionMono, populatedExecuteActionDTOMono) - .flatMap(tuple -> { - NewAction newAction = tuple.getT1(); - ExecuteActionDTO populatedExecuteActionDTO = tuple.getT2(); - return getTrueEnvironmentId(newAction, populatedExecuteActionDTO, executeActionMetaDTO); - }); + Mono environmentIdMono = newActionMono.flatMap( + newAction -> getTrueEnvironmentId(newAction, executeActionDTO, executeActionMetaDTO)); return Mono.zip(populatedExecuteActionDTOMono, environmentIdMono).flatMap(pair -> { ExecuteActionDTO populatedExecuteActionDTO = pair.getT1();