Skip to content

Commit 9a77e44

Browse files
committed
refactor
1 parent 9e7715f commit 9a77e44

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

slo/src/Linq2db/SloLinq2DbContext.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@
1414

1515
namespace Linq2db;
1616

17-
/// <summary>
18-
/// SLO harness implemented on top of LINQ to DB provider for YDB.
19-
/// Mirrors behavior of other SLO contexts (ADO.NET/EF/Topic) in this repo.
20-
/// </summary>
2117
public sealed class SloLinq2DbContext : ISloContext
2218
{
2319
private static readonly ILogger Logger = ISloContext.Factory.CreateLogger<SloLinq2DbContext>();
2420

25-
// Prometheus metrics (shared labels: operation, status)
2621
private static readonly Counter Requests = Metrics.CreateCounter(
2722
"ydb_slo_requests_total",
2823
"Total number of SLO operations processed.",
@@ -116,7 +111,6 @@ public async Task Run(RunConfig config)
116111
using var db = new DataConnection(provider, ydb);
117112
db.AddMappingSchema(CreateMapping());
118113

119-
// Get current max Id
120114
var maxId = await db.GetTable<SloTable>().Select(t => (int?)t.Id).MaxAsync() ?? 0;
121115
var nextWriteId = maxId;
122116

0 commit comments

Comments
 (0)