Reformat with scalafmt 3.5.0
This commit is contained in:
parent
2ee331e6b5
commit
c396fe5c4a
|
@ -31,8 +31,7 @@ object LCFramework {
|
|||
println("Shutting down gracefully...")
|
||||
backgroundTask.shutdown()
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
server.start()
|
||||
}
|
||||
|
|
|
@ -3,7 +3,8 @@ package lc.database
|
|||
import java.sql.{Connection, DriverManager, Statement}
|
||||
|
||||
class DBConn() {
|
||||
val con: Connection = DriverManager.getConnection("jdbc:h2:./data/H2/captcha2;MAX_COMPACT_TIME=8000;DB_CLOSE_ON_EXIT=FALSE", "sa", "")
|
||||
val con: Connection =
|
||||
DriverManager.getConnection("jdbc:h2:./data/H2/captcha2;MAX_COMPACT_TIME=8000;DB_CLOSE_ON_EXIT=FALSE", "sa", "")
|
||||
|
||||
def getStatement(): Statement = {
|
||||
con.createStatement()
|
||||
|
|
|
@ -13,7 +13,13 @@ import java.net.InetSocketAddress
|
|||
import java.util
|
||||
import scala.jdk.CollectionConverters._
|
||||
|
||||
class Server(address: String, port: Int, captchaManager: CaptchaManager, playgroundEnabled: Boolean, corsHeader: String) {
|
||||
class Server(
|
||||
address: String,
|
||||
port: Int,
|
||||
captchaManager: CaptchaManager,
|
||||
playgroundEnabled: Boolean,
|
||||
corsHeader: String
|
||||
) {
|
||||
var headerMap: util.Map[String, util.List[String]] = _
|
||||
if (corsHeader.nonEmpty) {
|
||||
headerMap = Map("Access-Control-Allow-Origin" -> List(corsHeader).asJava).asJava
|
||||
|
|
Loading…
Reference in New Issue