Skip to content

Commit ce1f291

Browse files
committed
Formatting
1 parent ea91947 commit ce1f291

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

util/src/main/kotlin/com/caplin/integration/datasourcex/util/SimpleDataSourceFactory.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,32 +75,32 @@ object SimpleDataSourceFactory {
7575
): DataSource {
7676
val logPath =
7777
simpleConfig.logDirectory
78-
?: run {
79-
val tmpLogPath =
80-
Files.createTempDirectory(
81-
simpleConfig.name.replace("\\s".toRegex(), "").take(MAX_PATH_LENGTH),
82-
)
83-
logger.warn {
84-
"log file path is not specified, writing datasource logs to $tmpLogPath"
78+
?: run {
79+
val tmpLogPath =
80+
Files.createTempDirectory(
81+
simpleConfig.name.replace("\\s".toRegex(), "").take(MAX_PATH_LENGTH),
82+
)
83+
logger.warn {
84+
"log file path is not specified, writing datasource logs to $tmpLogPath"
85+
}
86+
tmpLogPath
8587
}
86-
tmpLogPath
87-
}
8888
val logDirectory = logPath.toFile()
8989
check(!logDirectory.exists() || logDirectory.isDirectory) { "$logPath is not a directory" }
9090
logDirectory.mkdirs()
9191

9292
val peerConfiguration =
9393
when (simpleConfig) {
9494
is SimpleDataSourceConfig.Discovery ->
95-
"""
95+
"""
9696
|discovery-addr ${simpleConfig.hostname}
9797
|discovery-cluster-name ${simpleConfig.clusterName}
9898
|datasrc-name ${simpleConfig.name}
9999
|datasrc-local-label ${simpleConfig.localLabel}
100100
"""
101101

102102
is SimpleDataSourceConfig.Peer ->
103-
"""
103+
"""
104104
|datasrc-name ${simpleConfig.name}
105105
|datasrc-local-label ${simpleConfig.localLabel}
106106
|datasrc-dev-override ${simpleConfig.devOverride}

0 commit comments

Comments
 (0)