Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillKurdyukov committed Aug 15, 2024
1 parent c92bd28 commit 2fcc463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slo/src/AdoNet/SloContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected override async Task Create(YdbDataSource client, string createTableSql
return await ydbCommand.ExecuteScalarAsync();
}, context);

return (policyResult.Context.TryGetValue("RetryCount", out var countAttempts) ? (int)countAttempts : 1,
return (policyResult.Context.TryGetValue("RetryCount", out var countAttempts) ? (int)countAttempts : 0,
((YdbException)policyResult.FinalException)?.Code ?? StatusCode.Success, policyResult.Result);
}

Expand Down

0 comments on commit 2fcc463

Please sign in to comment.