Skip to content

Commit d98bcfd

Browse files
committed
revert to previous Ctx to reduce required changes
1 parent 86c7e9d commit d98bcfd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ lazy val zioLoggingVersion = "2.2.4"
33

44
lazy val zio1Version = "1.0.18"
55

6-
lazy val jeromqVersion = "0.6.0"
6+
lazy val jeromqVersion = "0.5.4"
77

88
lazy val scala3Version = "3.4.2"
99
lazy val scala213Version = "2.13.14"

zio2-zmq/src/main/scala/zio/zmq/ZContext.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import zio.{ZIO, ZLayer}
55
import org.zeromq.ZMQException
66
import zio.Duration
77
import zio.durationInt
8+
import zmq.Ctx
9+
810

911
class ZContext {
10-
private val ctx = new org.zeromq.ZContext()
12+
private val ctx = new Ctx()
1113

12-
def shutdown() = ctx.close()
14+
def shutdown() = ctx.terminate()
1315

1416
private[zmq] def createSocket(socketType: Int) = ctx.createSocket(socketType)
1517
}

0 commit comments

Comments
 (0)