From 2d8a87bac694da9722d92521673bd253e733d482 Mon Sep 17 00:00:00 2001 From: yitter Date: Wed, 7 Apr 2021 00:53:19 +0800 Subject: [PATCH] auto commit --- C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs b/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs index 2c0ffcf..dc91a05 100644 --- a/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs +++ b/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs @@ -236,6 +236,8 @@ namespace Yitter.IdGenerator { EndOverCostAction(currentTimeTick); + // TODO: 在漂移终止,等待时间对齐时,如果发生时间回拨较长,则此处可能等待较长时间。可优化为:在漂移终止时增加时间回拨应对逻辑。(该情况发生概率很低) + _LastTimeTick = GetNextTimeTick(); _CurrentSeqNumber = MinSeqNumber; _IsOverCost = false;