Skip to content

Commit

Permalink
fix: use var
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Dec 6, 2022
1 parent 9c04591 commit 760fab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Miningcore/Api/Controllers/PoolApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task<GetPoolsResponse> Get(CancellationToken ct, [FromQuery] uint t

if(lastBlockTime.HasValue)
{
DateTime startTime = lastBlockTime.Value;
var startTime = lastBlockTime.Value;
var poolEffort = await cf.Run(con => shareRepo.GetEffortBetweenCreatedAsync(con, config.Id, pool.ShareMultiplier, startTime, clock.Now));
if(poolEffort.HasValue)
result.PoolEffort = poolEffort.Value;
Expand Down Expand Up @@ -142,7 +142,7 @@ public async Task<GetPoolResponse> GetPoolInfoAsync(string poolId, CancellationT

if(lastBlockTime.HasValue)
{
DateTime startTime = lastBlockTime.Value;
var startTime = lastBlockTime.Value;
var poolEffort = await cf.Run(con => shareRepo.GetEffortBetweenCreatedAsync(con, pool.Id, poolInstance.ShareMultiplier, startTime, clock.Now));
if(poolEffort.HasValue)
response.Pool.PoolEffort = poolEffort.Value;
Expand Down

0 comments on commit 760fab1

Please sign in to comment.