Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
fix: incorrect expire time of client request (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongChaoqiang authored Sep 28, 2021
1 parent 497f1b1 commit b3d80c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.xiaomi.infra.pegasus.operator.client_operator;
import com.xiaomi.infra.pegasus.rpc.Table;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;

/** Created by weijiesun on 16-11-25. */
Expand Down Expand Up @@ -56,7 +57,7 @@ public ClientRequestRound(

this.enableCounter = enableCounter;
this.createNanoTime = System.nanoTime();
this.expireNanoTime = createNanoTime + timeoutInMilliseconds;
this.expireNanoTime = createNanoTime + TimeUnit.MILLISECONDS.toNanos(timeoutInMilliseconds);
this.isCompleted = false;
this.tryId = 1;
this.backupRequestTask = null;
Expand Down

0 comments on commit b3d80c9

Please sign in to comment.