Skip to content

Commit 2e3b526

Browse files
committed
update scalafmt
1 parent ac44509 commit 2e3b526

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.9.0
1+
version = 3.9.2
22

33
// alignment is cute. i think it helps readability overall, but sometimes it produces silly results. consider restructuring code in those cases
44
align.preset = more

Modules/Examples/Protocol Benchmarks/src/main/scala/probench/clients/Client.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ trait Client(name: Uid) {
140140
println("Saving Benchmark Data")
141141
val env = System.getenv()
142142
val runId = env.getOrDefault("RUN_ID", Uid.gen().delegate)
143-
val system = env.getOrDefault("SYSTEM_ID", "pb")
143+
val system = env.getOrDefault("SYSTEM_ID", "pb")
144144
val benchmarkPath = Path.of(env.getOrDefault("BENCH_RESULTS_DIR", "bench-results")).resolve(system).resolve(runId)
145145
val writer = new CSVWriter(";", benchmarkPath, s"${name.delegate}-$runId", BenchmarkData.header)
146146
benchmarkData.foreach { row =>

Modules/Reactives/jvm/src/main/scala/reactives/fullmv/NonblockingSkipListVersionHistory.scala

+3-4
Original file line numberDiff line numberDiff line change
@@ -646,10 +646,9 @@ class NonblockingSkipListVersionHistory[V, T <: FullMVTurn](init: T, val valuePe
646646
NotificationBranchResult.ReevOutBranchResult.NotifyAndReevaluationReadySuccessor(outgoings, newFirstFrame.txn)
647647
} else if newFirstFrame.pending > 0 then {
648648
NotificationBranchResult.ReevOutBranchResult.NotifyAndNonReadySuccessor(outgoings, newFirstFrame.txn)
649-
} else
650-
/* if(maybeNewFirstFrame.pending < 0) */ {
651-
NotificationBranchResult.ReevOutBranchResult.PureNotifyOnly(outgoings)
652-
}
649+
} else /* if(maybeNewFirstFrame.pending < 0) */ {
650+
NotificationBranchResult.ReevOutBranchResult.PureNotifyOnly(outgoings)
651+
}
653652
} else {
654653
NotificationBranchResult.ReevOutBranchResult.PureNotifyOnly(outgoings)
655654
}

Modules/Replication/jvm/src/main/scala/lofi_acl/sync/acl/bft/BftAclOpGraph.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ object BftAclOpGraph:
9191
parents = Set.empty
9292
)
9393
val opBytes = writeToArray(rootAclDelta)
94-
val sig = Ed25519Util.sign(opBytes, rootIdentity.identityKey.getPrivate)
94+
val sig = Ed25519Util.sign(opBytes, rootIdentity.identityKey.getPrivate)
9595
EncodedDelegation(sig, opBytes)
9696
}
9797

@@ -108,7 +108,7 @@ object BftAclOpGraph:
108108
) {
109109
def encode(signature: Signature)(using JsonValueCodec[Delegation]): EncodedDelegation = {
110110
val delegationBytes = writeToArray(this)
111-
val signatureBytes = Base64.getDecoder.decode(signature)
111+
val signatureBytes = Base64.getDecoder.decode(signature)
112112
assert(Ed25519Util.checkEd25519Signature(delegationBytes, signatureBytes, delegator))
113113
EncodedDelegation(signatureBytes, delegationBytes)
114114
}

0 commit comments

Comments
 (0)