Skip to content

Commit

Permalink
fix for scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten committed Feb 5, 2025
1 parent 9e52f37 commit 67f9679
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object SlidingDiagnostics {
def make[DiagnosticEvent](queueSize: Int = 16): ZIO[Scope, Nothing, QueuedDiagnostics[DiagnosticEvent]] =
ZIO.acquireRelease(Queue.sliding[DiagnosticEvent](queueSize))(_.shutdown).map(QueuedDiagnostics(_))

final case class QueuedDiagnostics[DiagnosticEvent] private[QueuedDiagnostics](queue: Queue[DiagnosticEvent])
final case class QueuedDiagnostics[DiagnosticEvent] private[SlidingDiagnostics](queue: Queue[DiagnosticEvent])
extends Diagnostics[DiagnosticEvent] {
override def emit(event: => DiagnosticEvent): UIO[Unit] = queue.offer(event).unit
}
Expand Down

0 comments on commit 67f9679

Please sign in to comment.