editreadme
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using static Yitter.IdGenerator.IIdGenerator;
|
||||
|
||||
namespace Yitter.IdGenerator
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user