Skip to content

Commit 32bbf54

Browse files
Update scalafmt-core to 3.7.11 (ReactiveMongo#1243)
* Update scalafmt-core to 3.7.11 * Reformat with scalafmt 3.7.11 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.7.11' to .git-blame-ignore-revs
1 parent f2bd51e commit 32bbf54

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ c8c5b31cb923728f69e404dff66ed6df7c7ce884
1212

1313
# Scala Steward: Reformat with scalafmt 3.7.5
1414
775a39b84d8dfd9242efb9f9b0e07839e5f0599b
15+
16+
# Scala Steward: Reformat with scalafmt 3.7.11
17+
dc8aa89cd09fdfb54759d83f20fa4aa988587ced

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.7.8
1+
version = 3.7.11
22
runner.dialect = Scala213Source3
33

44
newlines.alwaysBeforeElseAfterCurlyIf = false

driver/src/main/scala/core/actors/MongoDBSystem.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,8 @@ private[reactivemongo] trait MongoDBSystem extends Actor { selfSystem =>
13181318
val updated = {
13191319
val respTo = response.header.responseTo
13201320

1321-
@inline def event = s"IsMasterResponse(${isMaster.isMaster}, ${respTo}, ${_nodeSet.toShortString})"
1321+
@inline def event =
1322+
s"IsMasterResponse(${isMaster.isMaster}, ${respTo}, ${_nodeSet.toShortString})"
13221323

13231324
updateNodeSet(event) { nodeSet =>
13241325
val nodeSetWasReachable = nodeSet.isReachable
@@ -1327,7 +1328,7 @@ private[reactivemongo] trait MongoDBSystem extends Actor { selfSystem =>
13271328
val nanow = System.nanoTime()
13281329

13291330
// Update the details of the node corresponding to the response chan
1330-
import nodeSet.{updateNodeByChannelId=>updateNode}
1331+
import nodeSet.{ updateNodeByChannelId => updateNode }
13311332

13321333
val prepared = updateNode(response.info.channelId) { node =>
13331334
if (respTo < node.pingInfo.lastIsMasterId) {

driver/src/main/scala/core/nodeset/Node.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,15 @@ private[reactivemongo] final class Node(
201201
else s"${(ns / 1000000000L).toString}s"
202202
}
203203

204-
s"""Node[$name: $status<${hns(statusChanged)}> (${authenticatedConnections.size}/${connected.size}/${connections
204+
s"""Node[$name: $status<${hns(
205+
statusChanged
206+
)}> (${authenticatedConnections.size}/${connected.size}/${connections
205207
.filterNot(_.signaling)
206-
.size} available connections), latency=${hns(pingInfo.ping)}, authenticated={${authenticated
207-
.map(_.toShortString) mkString ", "}}]"""
208+
.size} available connections), latency=${hns(
209+
pingInfo.ping
210+
)}, authenticated={${authenticated.map(
211+
_.toShortString
212+
) mkString ", "}}]"""
208213
}
209214

210215
/** Returns the read-only information about this node. */

0 commit comments

Comments
 (0)