refactor: improve initializeMetrics method formatting for clarity
Build & Test (NowChessSystems) TeamCity build finished
Build & Test (NowChessSystems) TeamCity build finished
This commit is contained in:
@@ -36,11 +36,12 @@ class GameWebSocketResource:
|
|||||||
private val connections = new ConcurrentHashMap[String, ConnectionMeta]()
|
private val connections = new ConcurrentHashMap[String, ConnectionMeta]()
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
def initializeMetrics(): Unit =
|
def initializeMetrics(): Unit = {
|
||||||
_ = connectionsOpened
|
connectionsOpened
|
||||||
_ = connectionsClosed
|
connectionsClosed
|
||||||
_ = messagesReceived
|
messagesReceived
|
||||||
_ = activeGauge
|
activeGauge
|
||||||
|
}
|
||||||
|
|
||||||
private lazy val connectionsOpened: Counter =
|
private lazy val connectionsOpened: Counter =
|
||||||
meterRegistry.counter("nowchess.ws.connections.opened")
|
meterRegistry.counter("nowchess.ws.connections.opened")
|
||||||
|
|||||||
Reference in New Issue
Block a user