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

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii Chudnov <[email protected]>
  • Loading branch information
Grigorii Chudnov authored and mdedetrich committed Mar 20, 2020
1 parent 2755f52 commit ae27d5e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/main/scala/org/zalando/kanadi/api/Subscriptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ object Subscriptions {
batchFlushTimeout: Option[FiniteDuration] = None,
streamTimeout: Option[FiniteDuration] = None,
streamKeepAliveLimit: Option[Int] = None,
commitTimeout: Option[FiniteDuration] = None
)
commitTimeout: Option[FiniteDuration] = None)

/**
* Nakadi stream represented as an akka-stream [[Source]]
Expand Down Expand Up @@ -991,13 +990,13 @@ case class Subscriptions(baseUri: URI, oAuth2TokenProvider: Option[OAuth2TokenPr
.withQuery(
Query(
Map(
"max_uncommitted_events" -> streamConfig.maxUncommittedEvents.map(_.toString),
"batch_limit" -> streamConfig.batchLimit.map(_.toString),
"stream_limit" -> streamConfig.streamLimit.map(_.toString),
"batch_flush_timeout" -> streamConfig.batchFlushTimeout.map(_.toSeconds.toString),
"stream_timeout" -> streamConfig.streamTimeout.map(_.toSeconds.toString),
"max_uncommitted_events" -> streamConfig.maxUncommittedEvents.map(_.toString),
"batch_limit" -> streamConfig.batchLimit.map(_.toString),
"stream_limit" -> streamConfig.streamLimit.map(_.toString),
"batch_flush_timeout" -> streamConfig.batchFlushTimeout.map(_.toSeconds.toString),
"stream_timeout" -> streamConfig.streamTimeout.map(_.toSeconds.toString),
"stream_keep_alive_limit" -> streamConfig.streamKeepAliveLimit.map(_.toString),
"commit_timeout" -> streamConfig.commitTimeout.map(_.toSeconds.toString)
"commit_timeout" -> streamConfig.commitTimeout.map(_.toSeconds.toString)
).collect {
case (k, Some(v)) => (k, v)
})
Expand Down

0 comments on commit ae27d5e

Please sign in to comment.