Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ox to 0.4.0 #4059

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

//> using dep com.softwaremill.sttp.tapir::tapir-core:1.11.4
//> using dep com.softwaremill.sttp.tapir::tapir-netty-server-sync:1.11.4
//> using dep com.softwaremill.ox::core:0.3.9
//> using dep com.softwaremill.ox::core:0.4.0

package sttp.tapir.examples.websocket

import ox.channels.{Actor, ActorRef, Channel, ChannelClosed, Default, DefaultResult, selectOrClosed}
import ox.{ExitCode, IO, Ox, OxApp, fork, never, releaseAfterScope}
import ox.{ExitCode, Ox, OxApp, fork, never, releaseAfterScope}
import sttp.tapir.*
import sttp.tapir.CodecFormat.*
import sttp.tapir.server.netty.sync.{NettySyncServer, OxStreams}
Expand Down Expand Up @@ -76,7 +76,7 @@ def chatProcessor(a: ActorRef[ChatRoom]): OxStreams.Pipe[Message, Message] =
}

object WebSocketChatNettySyncServer extends OxApp:
override def run(args: Vector[String])(using Ox, IO): ExitCode =
override def run(args: Vector[String])(using Ox): ExitCode =
val chatActor = Actor.create(new ChatRoom)
val chatServerEndpoint = chatEndpoint.handleSuccess(_ => chatProcessor(chatActor))
val binding = NettySyncServer().addEndpoint(chatServerEndpoint).start()
Expand Down
2 changes: 1 addition & 1 deletion project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object Versions {
val json4s = "4.0.7"
val metrics4Scala = "4.3.2"
val nettyReactiveStreams = "3.0.2"
val ox = "0.3.8"
val ox = "0.4.0"
val reactiveStreams = "1.0.4"
val sprayJson = "1.3.6"
val scalaCheck = "1.18.1"
Expand Down
Loading