Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vermas7988 committed Feb 12, 2025
1 parent 425e207 commit abec61f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ object SubscriptionsSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
firstMessagesRef <- Ref.make(("", ""))
finalizersRef <- Ref.make(Chunk.empty[String])

consumer <- KafkaTestUtils.makeConsumer(client, Some(group))
consumer <- KafkaTestUtils.makeConsumer(client, Some(group))
consumer0IsRunning <- Promise.make[Nothing, Unit]
c1Fib <- consumer
.plainStream(Subscription.topics(topic1), Serde.string, Serde.string)
// Here we delay each message to be sure that `consumer1` will fail while `consumer0` is still running
.mapZIO { r =>
consumer0IsRunning.succeed(()) *> // Notify that `consumer0` is running
firstMessagesRef.updateSome { case ("", v) => ("First consumer0 message", v) } *>
firstMessagesRef.updateSome { case ("", v) => ("First consumer0 message", v) } *>
ZIO
.logDebug(s"Consumed ${counter.getAndIncrement()} records")
.delay(10.millis)
Expand Down

0 comments on commit abec61f

Please sign in to comment.