From 44161e463b886dd0425a9160e07055f94c3893d7 Mon Sep 17 00:00:00 2001 From: ahmed-ali-55 Date: Wed, 23 Aug 2023 17:58:32 +0200 Subject: [PATCH] reformatting and fixing detekt errors --- .../gitlab/broker/connector/domain/GitLabHeartbeatResponse.kt | 2 +- .../vsm/gitlab/broker/connector/runner/InitialStateRunner.kt | 2 +- .../vsm/gitlab/broker/connector/scheduler/HeartbeatScheduler.kt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/domain/GitLabHeartbeatResponse.kt b/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/domain/GitLabHeartbeatResponse.kt index d69164e..b65fc87 100644 --- a/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/domain/GitLabHeartbeatResponse.kt +++ b/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/domain/GitLabHeartbeatResponse.kt @@ -3,4 +3,4 @@ package net.leanix.vsm.gitlab.broker.connector.domain data class GitLabHeartbeatResponse( val status: String, val newConfigAvailable: Boolean -) \ No newline at end of file +) diff --git a/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/runner/InitialStateRunner.kt b/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/runner/InitialStateRunner.kt index 3a08b11..dcd681a 100644 --- a/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/runner/InitialStateRunner.kt +++ b/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/runner/InitialStateRunner.kt @@ -21,7 +21,7 @@ class InitialStateRunner( assignmentService.getAssignments()?.forEach { assignment -> logger.info( "Received assignment for ${assignment.connectorConfiguration.orgName} " + - "with configuration id: ${assignment.configurationId} and with run id: ${assignment.runId}" + "with configuration id: ${assignment.configurationId} and with run id: ${assignment.runId}" ) } }.onSuccess { diff --git a/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/scheduler/HeartbeatScheduler.kt b/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/scheduler/HeartbeatScheduler.kt index 013e8a5..068d214 100644 --- a/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/scheduler/HeartbeatScheduler.kt +++ b/src/main/kotlin/net/leanix/vsm/gitlab/broker/connector/scheduler/HeartbeatScheduler.kt @@ -16,6 +16,7 @@ class HeartbeatScheduler( private val logger = LoggerFactory.getLogger(HeartbeatScheduler::class.java) @Scheduled(fixedRateString = "\${leanix.heartbeat.interval}") + @Suppress("ForbiddenComment") fun heartbeat() { AssignmentsCache.getAll().values.forEach { assignment -> logger.info("Sending heartbeat for runId: ${assignment.runId}") @@ -24,6 +25,7 @@ class HeartbeatScheduler( ?.also { assignmentService.getAssignments() // TODO: here we need to re-fetch everything for this config + // remove @Suppress from function definition } } }