Skip to content

Commit 735c88c

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent f5a5b86 commit 735c88c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/GeoIpDownloaderTaskExecutor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ public void clusterChanged(ClusterChangedEvent event) {
231231
// bootstrap task once iff it is not already bootstrapped
232232
AtomicBoolean taskIsBootstrapped = taskIsBootstrappedByProject.computeIfAbsent(projectId, k -> new AtomicBoolean(false));
233233
if (taskIsBootstrapped.getAndSet(true) == false) {
234-
this.taskIsBootstrappedByProject.computeIfAbsent(projectId,
235-
k -> new AtomicBoolean(hasAtLeastOneGeoipProcessor(projectMetadata)));
234+
this.taskIsBootstrappedByProject.computeIfAbsent(
235+
projectId,
236+
k -> new AtomicBoolean(hasAtLeastOneGeoipProcessor(projectMetadata))
237+
);
236238
if (ENABLED_SETTING.get(event.state().getMetadata().settings(), settings)) {
237239
logger.debug("Bootstrapping geoip downloader task for project [{}]", projectId);
238240
startTask(projectId, () -> taskIsBootstrapped.set(false));

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/GeoIpDownloaderTaskExecutorTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
package org.elasticsearch.ingest.geoip;
1111

12-
import org.elasticsearch.cluster.ClusterName;
13-
import org.elasticsearch.cluster.ClusterState;
1412
import org.elasticsearch.cluster.metadata.IndexMetadata;
1513
import org.elasticsearch.cluster.metadata.Metadata;
1614
import org.elasticsearch.cluster.metadata.ProjectMetadata;

0 commit comments

Comments
 (0)