From 809f8cc7dba1aa086e6f1beb00e3cbfe8608d896 Mon Sep 17 00:00:00 2001 From: zhouzj Date: Thu, 11 Mar 2021 21:44:50 +0800 Subject: [PATCH] editreadme --- src/Yitter.IdGenerator/ISnowWorker.cs | 1 - src/Yitter.IdGenerator/YitIdGenerator.cs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Yitter.IdGenerator/ISnowWorker.cs b/src/Yitter.IdGenerator/ISnowWorker.cs index 361d457..d91ab10 100644 --- a/src/Yitter.IdGenerator/ISnowWorker.cs +++ b/src/Yitter.IdGenerator/ISnowWorker.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Text; -using static Yitter.IdGenerator.IIdGenerator; namespace Yitter.IdGenerator { diff --git a/src/Yitter.IdGenerator/YitIdGenerator.cs b/src/Yitter.IdGenerator/YitIdGenerator.cs index f67ba5d..6bf6d10 100644 --- a/src/Yitter.IdGenerator/YitIdGenerator.cs +++ b/src/Yitter.IdGenerator/YitIdGenerator.cs @@ -29,7 +29,7 @@ namespace Yitter.IdGenerator if (options.SeqBitLength + options.WorkerIdBitLength > 22) { - throw new ApplicationException("不满足条件:WorkerIdBitLength + SeqBitLength <= 22"); + throw new ApplicationException("error:WorkerIdBitLength + SeqBitLength <= 22"); } var maxWorkerIdNumber = Math.Pow(2, options.WorkerIdBitLength) - 1; @@ -72,7 +72,6 @@ namespace Yitter.IdGenerator { Thread.Sleep(500); } - }