Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.5 (#2404)
Browse files Browse the repository at this point in the history
Co-authored-by: scala-steward <scala-steward>
  • Loading branch information
softwaremill-ci authored Jan 19, 2025
1 parent f802b16 commit 518afd2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ a5e39d1f4d49c7e32a9b834ebbf429f8f5cab5ee

# Scala Steward: Reformat with scalafmt 3.8.2
be3cd01c8ea70ee2383d0d05ab8d129f67b70c28

# Scala Steward: Reformat with scalafmt 3.8.5
744672208f8e4e501218f22fcd8589841aee7ad2
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.2
version = 3.8.5
maxColumn = 120
runner.dialect = scala213
fileOverride {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ object CircuitBreakerBackendWrapper:
try
monadError.handleError(monadError.map(service): r =>
circuitBreaker.onSuccess(System.nanoTime() - start, TimeUnit.NANOSECONDS)
r
) { case t =>
r) { case t =>
circuitBreaker.onError(System.nanoTime() - start, TimeUnit.NANOSECONDS, t)
monadError.error(t)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ private class HttpServer(port: Int, info: String => Unit) extends AutoCloseable
protocol = HttpProtocols.`HTTP/1.1`
)
)
} ~ pathPrefix("retry") { // #1616: calling the endpoint with the same tag will give status codes 401, 401, 400, 200, ...
} ~ pathPrefix(
"retry"
) { // #1616: calling the endpoint with the same tag will give status codes 401, 401, 400, 200, ...
parameter("tag") { tag =>
val current = Option(retryTestCache.get(tag)).getOrElse(0)
retryTestCache.put(tag, current + 1)
Expand Down

0 comments on commit 518afd2

Please sign in to comment.