Skip to content

Commit 0ee5c57

Browse files
committed
Fix JS 2.12 compilation
1 parent f3c5f70 commit 0ee5c57

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

io/js/src/main/scala/fs2/io/net/tls/TLSSocketPlatform.scala

-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ private[tls] trait TLSSocketCompanionPlatform { self: TLSSocket.type =>
7575
underlying.peerAddress
7676
)
7777
with UnsealedTLSSocket[F] {
78-
@deprecated("3.13.0", "Use address instead")
79-
override def localAddress = underlying.localAddress
80-
@deprecated("3.13.0", "Use peerAddress instead")
81-
override def remoteAddress = underlying.remoteAddress
8278
override def getOption[A](key: SocketOption.Key[A]) = underlying.getOption(key)
8379
override def setOption[A](key: SocketOption.Key[A], value: A) = underlying.setOption(key, value)
8480
override def supportedOptions = underlying.supportedOptions

io/shared/src/test/scala/fs2/io/net/SocketSuite.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ package io
2424
package net
2525

2626
import cats.effect.IO
27-
import com.comcast.ip4s._
27+
import com.comcast.ip4s.{UnknownHostException => Ip4sUnknownHostException, _}
2828

2929
import scala.concurrent.duration._
3030
import scala.concurrent.TimeoutException
@@ -183,7 +183,7 @@ class SocketSuite extends Fs2Suite with SocketSuitePlatform {
183183
.use_
184184
.attempt
185185
.map {
186-
case Left(ex: UnknownHostException) =>
186+
case Left(ex: Ip4sUnknownHostException) =>
187187
assert(
188188
ex.getMessage == "not.example.com: Name or service not known" || ex.getMessage == "not.example.com: nodename nor servname provided, or not known"
189189
)

0 commit comments

Comments
 (0)