Skip to content

Commit 85c400d

Browse files
committed
Fix variable names
1 parent 3db6be3 commit 85c400d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Stores/MariaDB/Cleipnir.ResilientFunctions.MariaDB/MariaDbFunctionStore.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public async Task<bool> SucceedFunction(
349349
IReadOnlyList<StoredMessage>? messages,
350350
ComplimentaryState complimentaryState)
351351
{
352-
var suspendCommand = _sqlGenerator.SucceedFunction(storedId, result, timestamp, expectedEpoch);
352+
var succeedCommand = _sqlGenerator.SucceedFunction(storedId, result, timestamp, expectedEpoch);
353353
var effectsCommand = effects == null
354354
? null
355355
: _sqlGenerator.UpsertEffects(effects);
@@ -360,14 +360,14 @@ public async Task<bool> SucceedFunction(
360360
await using var conn = await CreateOpenConnection(_connectionString);
361361
if (effects == null && messages == null)
362362
{
363-
await using var command = suspendCommand.ToSqlCommand(conn);
363+
await using var command = succeedCommand.ToSqlCommand(conn);
364364
var affectedRows = await command.ExecuteNonQueryAsync();
365365
return affectedRows == 1;
366366
}
367367
else
368368
{
369369
await using var command = StoreCommand.Merge(
370-
messagesCommand.Append(effectsCommand).Append(suspendCommand)
370+
messagesCommand.Append(effectsCommand).Append(succeedCommand)
371371
)!.ToSqlCommand(conn);
372372
var affectedRows = await command.ExecuteNonQueryAsync();
373373
return affectedRows == 1 + (effects?.Count ?? 0) + (messages?.Count ?? 0);
@@ -384,7 +384,7 @@ public async Task<bool> PostponeFunction(
384384
IReadOnlyList<StoredMessage>? messages,
385385
ComplimentaryState complimentaryState)
386386
{
387-
var suspendCommand = _sqlGenerator
387+
var postponeCommand = _sqlGenerator
388388
.PostponeFunction(storedId, postponeUntil, timestamp, ignoreInterrupted, expectedEpoch);
389389
var effectsCommand = effects == null
390390
? null
@@ -396,14 +396,14 @@ public async Task<bool> PostponeFunction(
396396
await using var conn = await CreateOpenConnection(_connectionString);
397397
if (effects == null && messages == null)
398398
{
399-
await using var command = suspendCommand.ToSqlCommand(conn);
399+
await using var command = postponeCommand.ToSqlCommand(conn);
400400
var affectedRows = await command.ExecuteNonQueryAsync();
401401
return affectedRows == 1;
402402
}
403403
else
404404
{
405405
await using var command = StoreCommand.Merge(
406-
messagesCommand.Append(effectsCommand).Append(suspendCommand)
406+
messagesCommand.Append(effectsCommand).Append(postponeCommand)
407407
)!.ToSqlCommand(conn);
408408
var affectedRows = await command.ExecuteNonQueryAsync();
409409
return affectedRows == 1 + (effects?.Count ?? 0) + (messages?.Count ?? 0);

0 commit comments

Comments
 (0)