Skip to content

Commit

Permalink
reformatting and fixing detekt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-ali-55 committed Aug 23, 2023
1 parent 2c35d5b commit 44161e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package net.leanix.vsm.gitlab.broker.connector.domain
data class GitLabHeartbeatResponse(
val status: String,
val newConfigAvailable: Boolean
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand All @@ -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
}
}
}
Expand Down

0 comments on commit 44161e4

Please sign in to comment.