From 9075c4966d67ba0cc44e1184f8713bbcefeb0dd4 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Wed, 4 Aug 2021 12:23:48 +0800 Subject: [PATCH] Update SnowFlakeSingle --- .../SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs b/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs index 568fea0b9..1a4bb6cef 100644 --- a/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs +++ b/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs @@ -10,9 +10,10 @@ namespace SqlSugar { public static readonly SnowFlakeSingle instance = new SnowFlakeSingle(); public static int WorkId = 1; + public static int DatacenterId = 1; private SnowFlakeSingle() { - worker = new DistributedSystem.Snowflake.IdWorker(WorkId, 1); + worker = new DistributedSystem.Snowflake.IdWorker(WorkId, DatacenterId); } static SnowFlakeSingle() { } public static SnowFlakeSingle Instance