fix: 修复依赖注入问题

This commit is contained in:
橙子
2024-10-17 23:45:38 +08:00
parent 8a57bf52f9
commit 942868f17f
3 changed files with 19 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ public class MiningPoolManager : DomainService
return await ComputeMiningProbabilityAsync();
});
public async Task<MiningPoolContent> GetMiningPoolContentAsync()
public async Task<MiningPoolContent?> GetMiningPoolContentAsync()
{
var pool = await _miningPoolCache.GetAsync(MiningCacheConst.MiningPoolContent);
return pool;