Skip to content

Commit

Permalink
Merge branch 'feature/worker-cluster' into feature/2.6.0-union
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-zhaolei committed Dec 7, 2024
2 parents e6f47ca + ff7a65c commit afe3877
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ContactMigrateWorker(
_options = options;
_service = service;
_logger = logger;
Period = options.CurrentValue.Period * 1000;
Period = options.CurrentValue.Period;
}

protected override async Task DoWorkAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public TokenPriceBackgroundWorker(
_logger = logger;
_tokenPriceService = tokenPriceService;
_tokenPriceWorkerOption = tokenPriceWorkerOption.CurrentValue;
Period = _tokenPriceWorkerOption.Period * 1000;
Period = _tokenPriceWorkerOption.Period;
}

protected override async Task DoWorkAsync()
Expand Down
4 changes: 2 additions & 2 deletions src/CAServer.EntityEventHandler.Core/Worker/WorkerConst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace CAServer.EntityEventHandler.Core.Worker;

public class WorkerConst
{
public const int TimePeriod = 3000;
public const int TimePeriod = 3;
public const int MaxOlderBlockHeightFromNow = 100000;
public const int CryptoGiftExpiredTimePeriod = 60000;
public const int CryptoGiftExpiredTimePeriod = 60;
public const int CryptoGiftStatisticsPeriod = 2160000;
public const int InitReferralTimePeriod = 30000;
public const int TenSencodsTimePeriod = 10000;
Expand Down

0 comments on commit afe3877

Please sign in to comment.