From 3e7b1fd450668f7b9b7ca514fdf9231807a0d310 Mon Sep 17 00:00:00 2001 From: Fabio Di Fabio Date: Thu, 25 Jul 2024 17:34:59 +0200 Subject: [PATCH] init config object only once Signed-off-by: Fabio Di Fabio --- .../linea/plugins/LineaOptionsPluginConfiguration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arithmetization/src/main/java/net/consensys/linea/plugins/LineaOptionsPluginConfiguration.java b/arithmetization/src/main/java/net/consensys/linea/plugins/LineaOptionsPluginConfiguration.java index 53aab3ae5d..0378a212c0 100644 --- a/arithmetization/src/main/java/net/consensys/linea/plugins/LineaOptionsPluginConfiguration.java +++ b/arithmetization/src/main/java/net/consensys/linea/plugins/LineaOptionsPluginConfiguration.java @@ -29,6 +29,8 @@ public class LineaOptionsPluginConfiguration { @Getter private LineaOptionsConfiguration optionsConfig; public void initOptionsConfig() { - optionsConfig = optionsConfigSupplier.get(); + if (optionsConfig == null) { + optionsConfig = optionsConfigSupplier.get(); + } } }