Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Update scalafmt version and GitHub action (#220)
Browse files Browse the repository at this point in the history
* Update scalafmt version and github action

Signed-off-by: Matthew de Detrich <[email protected]>

* Apply scalafmt

Signed-off-by: Matthew de Detrich <[email protected]>

---------

Signed-off-by: Matthew de Detrich <[email protected]>
  • Loading branch information
mdedetrich authored Jan 8, 2024
1 parent d77479b commit 8a3a681
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ jobs:
fetch-depth: 0

- name: Check project is formatted
uses: jrouly/scalafmt-native-action@v2
with:
version: '3.1.2'
uses: jrouly/scalafmt-native-action@v3
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.1.2
version = 3.7.17
runner.dialect = scala212source3
style = defaultWithAlign
maxColumn = 120
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/org/zalando/kanadi/api/Subscriptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ case class Subscriptions(baseUri: URI, authTokenProvider: Option[AuthTokenProvid
Subscriptions.ConnectionClosedCallback { connectionClosedData =>
if (!connectionClosedData.cancelledByClient) {
logger.info(s"Server disconnected Nakadi stream, reconnecting in ${kanadiHttpConfig.serverDisconnectRetryDelay
.toString()}. Old StreamId: ${connectionClosedData.oldStreamId.id}, SubscriptionId: ${subscriptionId.id.toString}")
.toString()}. Old StreamId: ${connectionClosedData.oldStreamId.id}, SubscriptionId: ${subscriptionId.id.toString}")

reconnect(subscriptionId,
eventCallback,
Expand All @@ -1555,7 +1555,7 @@ case class Subscriptions(baseUri: URI, authTokenProvider: Option[AuthTokenProvid
streamId
}.recoverWith { case _: Subscriptions.Errors.NoEmptySlotsOrCursorReset =>
logger.info(s"No empty slots/cursor reset, reconnecting in ${kanadiHttpConfig.noEmptySlotsCursorResetRetryDelay
.toString()}, SubscriptionId: ${subscriptionId.id.toString}")
.toString()}, SubscriptionId: ${subscriptionId.id.toString}")

reconnect(subscriptionId,
eventCallback,
Expand Down Expand Up @@ -1586,7 +1586,7 @@ case class Subscriptions(baseUri: URI, authTokenProvider: Option[AuthTokenProvid
nakadiSource
}.recoverWith { case _: Subscriptions.Errors.NoEmptySlotsOrCursorReset =>
logger.info(s"No empty slots/cursor reset, reconnecting in ${kanadiHttpConfig.noEmptySlotsCursorResetRetryDelay
.toString()}, SubscriptionId: ${subscriptionId.id.toString}")
.toString()}, SubscriptionId: ${subscriptionId.id.toString}")
org.apache.pekko.pattern.after(kanadiHttpConfig.noEmptySlotsCursorResetRetryDelay, http.system.scheduler)(
eventsStreamedSourceManaged[T](
subscriptionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class BadJsonDecodingSpec
val future = for {
closed <- closedFuture
waitForClose <- waitForCloseFuture
} yield (closed | waitForClose) // either connection has been closed earlier or from our client side
} yield closed | waitForClose // either connection has been closed earlier or from our client side

future.map(result => result mustEqual true)
}
Expand Down

0 comments on commit 8a3a681

Please sign in to comment.