Skip to content

Commit 59a7715

Browse files
authored
chore: Set the default value of WorkerId to false for initializing WorkerId (#97)
1 parent 76b1ec4 commit 59a7715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/IdGenerator/Masa.Contrib.Data.IdGenerator.Snowflake/Internal/WorkerIdBackgroundServices.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal class WorkerIdBackgroundServices : BackgroundService
99
private readonly int _maxExpirationTime;
1010
private readonly IWorkerProvider _workerProvider;
1111
private readonly ILogger<WorkerIdBackgroundServices>? _logger;
12-
private bool _isAvailable = true;
12+
private bool _isAvailable;
1313
private DateTime? _firstFailedTime;
1414

1515
public WorkerIdBackgroundServices(int heartbeatInterval, int maxExpirationTime, IWorkerProvider workerProvider,

0 commit comments

Comments
 (0)