From 205b143fdb70794eb503e853a7a1489c08cd521b Mon Sep 17 00:00:00 2001 From: Giuseppe Villani Date: Tue, 21 Feb 2023 09:37:10 +0100 Subject: [PATCH] [NOID] Fix wrong throttle config in Geocode.SupplierWithKey (neo4j/apoc#327) (#3453) --- core/src/main/java/apoc/spatial/Geocode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/apoc/spatial/Geocode.java b/core/src/main/java/apoc/spatial/Geocode.java index 89cfe8aa36..adfe39920a 100755 --- a/core/src/main/java/apoc/spatial/Geocode.java +++ b/core/src/main/java/apoc/spatial/Geocode.java @@ -105,7 +105,7 @@ public SupplierWithKey(Configuration config, TerminationGuard terminationGuard, urlTemplate = urlTemplate.replace("KEY", key); urlTemplateReverse = urlTemplateReverse.replace("KEY", key); - this.throttler = new Throttler(terminationGuard, apocConfig().getInt(configKey("throttle"), (int) Throttler.DEFAULT_THROTTLE)); + this.throttler = new Throttler(terminationGuard, config.getInt(configKey("throttle"), (int) Throttler.DEFAULT_THROTTLE)); } @SuppressWarnings("unchecked")