From 0f388ffcfc9a34a6861d55e2175cae12b02eab4e Mon Sep 17 00:00:00 2001 From: zhouzj Date: Fri, 12 Mar 2021 13:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0YidHelper=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/Yitter.IdGenerator/YidGenerator.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d977580..a64c820 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ var options = new IdGeneratorOptions() WorkerId = 1 }; -var newId = new YitIdGenerator(options).NewLong(); +var newId = new YidGenerator(options).NewLong(); ``` #### 传统雪花算法 @@ -182,7 +182,7 @@ var options = new IdGeneratorOptions() WorkerId = 1 }; -var newId = new YitIdGenerator(options).NewLong(); +var newId = new YidGenerator(options).NewLong(); ``` #### options说明 diff --git a/src/Yitter.IdGenerator/YidGenerator.cs b/src/Yitter.IdGenerator/YidGenerator.cs index ea3952c..c7be142 100644 --- a/src/Yitter.IdGenerator/YidGenerator.cs +++ b/src/Yitter.IdGenerator/YidGenerator.cs @@ -14,7 +14,7 @@ using System.Threading; namespace Yitter.IdGenerator { - public class YitIdGenerator : IIdGenerator + public class YidGenerator : IIdGenerator { private ISnowWorker _SnowWorker { get; set; } @@ -25,7 +25,7 @@ namespace Yitter.IdGenerator } - public YitIdGenerator(IdGeneratorOptions options) + public YidGenerator(IdGeneratorOptions options) { if (options == null) {