fix warnings in contrib, docs, osgi, persistence and slf4j
This commit is contained in:
parent
82b8238a9c
commit
a029a90502
17 changed files with 116 additions and 89 deletions
|
|
@ -70,18 +70,19 @@ class EchoManager(handlerClass: Class[_]) extends Actor with ActorLogging {
|
|||
|
||||
}
|
||||
|
||||
//#echo-handler
|
||||
object EchoHandler {
|
||||
final case class Ack(offset: Int) extends Tcp.Event
|
||||
|
||||
def props(connection: ActorRef, remote: InetSocketAddress): Props =
|
||||
Props(classOf[EchoHandler], connection, remote)
|
||||
}
|
||||
|
||||
//#echo-handler
|
||||
class EchoHandler(connection: ActorRef, remote: InetSocketAddress)
|
||||
extends Actor with ActorLogging {
|
||||
|
||||
import Tcp._
|
||||
|
||||
final case class Ack(offset: Int) extends Event
|
||||
import EchoHandler._
|
||||
|
||||
// sign death pact: this actor terminates when connection breaks
|
||||
context watch connection
|
||||
|
|
|
|||
|
|
@ -87,8 +87,9 @@ object ScalaUdpDocSpec {
|
|||
//#connected
|
||||
case msg: String =>
|
||||
connection ! UdpConnected.Send(ByteString(msg))
|
||||
case d @ UdpConnected.Disconnect => connection ! d
|
||||
case UdpConnected.Disconnected => context.stop(self)
|
||||
case UdpConnected.Disconnect =>
|
||||
connection ! UdpConnected.Disconnect
|
||||
case UdpConnected.Disconnected => context.stop(self)
|
||||
}
|
||||
}
|
||||
//#connected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue