Skip to content

Commit

Permalink
Close blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
svroonland committed Jan 11, 2023
1 parent 9aec63c commit 7507378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-kafka/src/main/scala/zio/kafka/producer/Producer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ object Producer {
value <- valueSerializer.serialize(r.topic, r.headers, r.value())
} yield new ProducerRecord(r.topic, r.partition(), r.timestamp(), key, value, r.headers)

private[producer] def close: UIO[Unit] = ZIO.attempt(p.close(producerSettings.closeTimeout)).orDie
private[producer] def close: UIO[Unit] = ZIO.attemptBlocking(p.close(producerSettings.closeTimeout)).orDie
}

val live: RLayer[ProducerSettings, Producer] =
Expand Down

0 comments on commit 7507378

Please sign in to comment.