Fixed problem with message toString is not lazily evaluated in RemoteClient
This commit is contained in:
parent
6188e708ef
commit
7ee8accfb1
1 changed files with 1 additions and 2 deletions
|
|
@ -417,8 +417,7 @@ class RemoteClientHandler(
|
|||
if (result.isInstanceOf[RemoteMessageProtocol]) {
|
||||
val reply = result.asInstanceOf[RemoteMessageProtocol]
|
||||
val replyUuid = uuidFrom(reply.getUuid.getHigh, reply.getUuid.getLow)
|
||||
// log.debug("Remote client received RemoteMessageProtocol[\n%s]".format(request.toString))
|
||||
log.debug("Remote client received RemoteMessageProtocol[\n%s]", reply.toString)
|
||||
log.debug("Remote client received RemoteMessageProtocol[\n%s]".format(reply.toString))
|
||||
val future = futures.get(replyUuid).asInstanceOf[CompletableFuture[Any]]
|
||||
if (reply.hasMessage) {
|
||||
if (future eq null) throw new IllegalActorStateException("Future mapped to UUID " + replyUuid + " does not exist")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue