From e4e0c4dcf172c343c7c7fbd41f09db4241511811 Mon Sep 17 00:00:00 2001 From: Fabio Di Fabio Date: Thu, 25 Jul 2024 17:48:20 +0200 Subject: [PATCH] fix: init config object only once (#873) 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(); + } } }