From f85910c088cdfd499ec8123d0d54d6d254844fbe Mon Sep 17 00:00:00 2001 From: varygin Date: Tue, 12 Jul 2022 12:41:49 +0400 Subject: [PATCH 1/2] up sbt version to the latest --- project/build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/build.properties b/project/build.properties index 19479ba..22af262 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.5.2 +sbt.version=1.7.1 From 0b01a8055a7ddfa09c5a8e7e18173f3b6c191f81 Mon Sep 17 00:00:00 2001 From: varygin Date: Tue, 12 Jul 2022 12:43:13 +0400 Subject: [PATCH 2/2] unsafeRunAndForget => unsafeRunSync for enqueueByteBuffer --- src/main/scala/eu/monniot/process/Process.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/eu/monniot/process/Process.scala b/src/main/scala/eu/monniot/process/Process.scala index 3856191..9a36bbb 100644 --- a/src/main/scala/eu/monniot/process/Process.scala +++ b/src/main/scala/eu/monniot/process/Process.scala @@ -111,7 +111,7 @@ object Process { // Ensure we consume the entire buffer in case it's not used. buffer.position(buffer.limit) - dispatcher.unsafeRunAndForget(q.offer(Some(bv))) + dispatcher.unsafeRunSync(q.offer(Some(bv))) } override def onStdout(buffer: ByteBuffer, closed: Boolean): Unit =