Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
htimur committed Apr 23, 2018
1 parent 39d51b9 commit 462539a
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ object Kinesis extends LazyLogging {
def source(
consumerName: String,
createConsumer: (ConsumerConf, ActorRef) => ConsumerService,
inConfig: String = "kinesis",
inConfig: String = "kinesis"
)(implicit system: ActorSystem): Source[CommittableEvent[ConsumerEvent], NotUsed] = {
val consumerConf = ConsumerConf(system.settings.config.getConfig(inConfig), consumerName)
source(consumerConf, createConsumer(consumerConf, _))
Expand All @@ -166,9 +166,10 @@ object Kinesis extends LazyLogging {
* @param system the actor system.
* @return A sink that accepts ProducerEvents.
*/
def sink(props: => Props, maxOutStanding: Int)(
implicit system: ActorSystem
): Sink[ProducerEvent, Future[Done]] = {
def sink(
props: => Props,
maxOutStanding: Int
)(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]] = {
Sink.fromGraph(new KinesisSinkGraphStage(props, maxOutStanding, system))
}

Expand Down Expand Up @@ -218,11 +219,11 @@ object Kinesis extends LazyLogging {
* @param system the actor system.
* @return A sink that accepts ProducerEvents.
*/
def sink(kinesisConfig: Config,
producerName: String,
credentialsProvider: Option[AWSCredentialsProvider])(
implicit system: ActorSystem
): Sink[ProducerEvent, Future[Done]] = {
def sink(
kinesisConfig: Config,
producerName: String,
credentialsProvider: Option[AWSCredentialsProvider]
)(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]] = {
sink(
ProducerConf(kinesisConfig, producerName, credentialsProvider)
)
Expand Down Expand Up @@ -258,11 +259,11 @@ object Kinesis extends LazyLogging {
* @param system the actor system.
* @return A sink that accepts ProducerEvents.
*/
def sink(producerName: String,
inConfig: String = "kinesis",
credentialsProvider: Option[AWSCredentialsProvider] = None)(
implicit system: ActorSystem
): Sink[ProducerEvent, Future[Done]] = {
def sink(
producerName: String,
inConfig: String = "kinesis",
credentialsProvider: Option[AWSCredentialsProvider] = None
)(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]] = {
sink(system.settings.config.getConfig(inConfig), producerName, credentialsProvider)
}
}

0 comments on commit 462539a

Please sign in to comment.