Browse Source

auto commit

tags/v1.1.0
yitter 3 years ago
parent
commit
2d8a87bac6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs

+ 2
- 0
C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs View File

@@ -236,6 +236,8 @@ namespace Yitter.IdGenerator
{
EndOverCostAction(currentTimeTick);
// TODO: 在漂移终止,等待时间对齐时,如果发生时间回拨较长,则此处可能等待较长时间。可优化为:在漂移终止时增加时间回拨应对逻辑。(该情况发生概率很低)
_LastTimeTick = GetNextTimeTick();
_CurrentSeqNumber = MinSeqNumber;
_IsOverCost = false;


Loading…
Cancel
Save