Skip to content

Commit

Permalink
fix(context): 修复单进程接受请求数没有增长的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleeit committed Aug 28, 2020
1 parent a023bfb commit 9cd7834
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ export class Context {
DEBUG: 0
};

this.SN = process.SN || 0;
process.SN = process.SN || 0;
process.SN += 1;

this.SN = process.SN;

this.captureSN = 0;
this.captureRequests = [];
Expand Down

0 comments on commit 9cd7834

Please sign in to comment.