Browse Source

editreadme

tags/v1.0.0
zhouzj 4 years ago
parent
commit
809f8cc7db
2 changed files with 1 additions and 3 deletions
  1. +0
    -1
      src/Yitter.IdGenerator/ISnowWorker.cs
  2. +1
    -2
      src/Yitter.IdGenerator/YitIdGenerator.cs

+ 0
- 1
src/Yitter.IdGenerator/ISnowWorker.cs View File

@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Text;
using static Yitter.IdGenerator.IIdGenerator;
namespace Yitter.IdGenerator
{


+ 1
- 2
src/Yitter.IdGenerator/YitIdGenerator.cs View File

@@ -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);
}
}


Loading…
Cancel
Save