Skip to content

Commit

Permalink
Apply scalafmt
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew de Detrich <mdedetrich@gmail.com>
  • Loading branch information
mdedetrich committed Jan 3, 2024
1 parent 29a3028 commit 11878f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/org/zalando/kanadi/api/Subscriptions.scala
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
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 11878f5

Please sign in to comment.