Skip to content

Commit 7ff65e6

Browse files
committed
add provider registration
1 parent 160c31e commit 7ff65e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

slo/src/Linq2db.Slo/SloLinq2DbContext.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using LinqToDB.Data;
55
using LinqToDB.Mapping;
66
using Internal;
7+
using Linq2db.Ydb;
78
using Linq2db.Ydb.Internal;
89
using LinqToDB.Async;
910
using LinqToDB.Internal.DataProvider.Ydb.Internal;
@@ -12,15 +13,15 @@ namespace Linq2db;
1213

1314
public sealed class SloTableContext : SloTableContext<SloTableContext.Linq2dbClient>
1415
{
15-
protected override string Job => "Linq2DB";
16+
protected override string Job => "Linq2db";
1617

1718
static SloTableContext()
1819
{
19-
// Включаем ретраи SDK глобально (как и раньше)
2020
YdbSdkRetryPolicyRegistration.UseGloballyWithIdempotence(
2121
maxAttempts: 10,
22-
onRetry: (attempt, ex, delay) => { /* лог/метрики при желании */ }
22+
onRetry: (attempt, ex, delay) => { }
2323
);
24+
DataConnection.AddProviderDetector(YdbTools.ProviderDetector);
2425
}
2526

2627
public sealed class Linq2dbClient

0 commit comments

Comments
 (0)