Skip to content

Commit

Permalink
Update pubsub/src/main/scala/com.snowplowanalytics.snowplow.collector…
Browse files Browse the repository at this point in the history
…s.scalastream/sinks/PubSubSink.scala

Co-authored-by: Benjamin BENOIST <[email protected]>
  • Loading branch information
pondzix and benjben authored Aug 21, 2023
1 parent e4c182b commit 0a11403
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class PubSubSink[F[_]: Async: Parallel: Logger] private (

private def produceBatch(events: List[Array[Byte]]): F[Unit] =
events.parTraverse_ { event =>
produceSingleEvent(event) *> isHealthyState.set(true)
}
produceSingleEvent(event)
} *> isHealthyState.set(true)

private def produceSingleEvent(event: Array[Byte]): F[Model.MessageId] =
producer
Expand Down

0 comments on commit 0a11403

Please sign in to comment.