Skip to content

Commit

Permalink
✨ 代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Aug 26, 2022
1 parent ec1c8ae commit eff80fa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.tio.core.Node;
import org.tio.core.Tio;
import org.tio.core.intf.Packet;
import org.tio.utils.SystemTimer;
import org.tio.utils.lock.SetWithLock;

import java.nio.ByteBuffer;
Expand Down Expand Up @@ -572,7 +571,7 @@ private void startHeartbeatTask() {
readLock.lock();
try {
Set<ChannelContext> set = setWithLock.getObj();
long currTime = SystemTimer.currTime;
long currTime = System.currentTimeMillis();
for (ChannelContext entry : set) {
ClientChannelContext channelContext = (ClientChannelContext) entry;
if (channelContext.isClosed || channelContext.isRemoved) {
Expand Down

0 comments on commit eff80fa

Please sign in to comment.