From 54209d9cc970e0e29c6321c418742fa2c5a91e6f Mon Sep 17 00:00:00 2001 From: sun Date: Wed, 20 Sep 2023 17:38:59 +0800 Subject: [PATCH] feat[virtual thread]: support virtual thread in net --- net/src/main/java/com/zfoo/net/router/Router.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/src/main/java/com/zfoo/net/router/Router.java b/net/src/main/java/com/zfoo/net/router/Router.java index 0a6a3dc33..0b7217abe 100644 --- a/net/src/main/java/com/zfoo/net/router/Router.java +++ b/net/src/main/java/com/zfoo/net/router/Router.java @@ -383,7 +383,7 @@ public void atReceiver(PacketReceiverTask packetReceiverTask) { } if (receiver.task() == Task.VirtualThread && receiver.attachment() == null) { - logger.warn("virtual thread task can not set Attachment, may cause some sync and async timeout, please use attachment in receiver method signature"); + logger.warn("virtual thread task can not set Attachment, may cause some sync and async timeout exception, please use attachment in receiver method signature and use attachment in sync and async request"); } receiver.invoke(session, packet, attachment);