Skip to content

Commit 866db16

Browse files
fix linter & SLO Topics
1 parent 231f0db commit 866db16

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/slo-topic.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
- name: Prepare SLO Database
2727
run: |
2828
cd slo/src/TopicService
29-
dotnet run create grpc://localhost:2135 /Root/testdb
29+
dotnet run create "Host=localhost;Port=2135;Database=/Root/testdb"
3030
- name: Run SLO Tests
3131
continue-on-error: true
3232
run: |
3333
cd slo/src/TopicService
34-
dotnet run run grpc://localhost:2135 /Root/testdb \
34+
dotnet run run "Host=localhost;Port=2135;Database=/Root/testdb" \
3535
--write-rps 50 \
3636
--time 600

slo/src/AdoNet/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// See https://aka.ms/new-console-template for more information
22

3+
using AdoNet;
34
using Internal;
45
using Ydb.Sdk.Ado;
56

6-
await Cli.Run((_, config) => new AdoNet.SloTableContext(
7-
new YdbDataSource(new YdbConnectionStringBuilder(config.ConnectionString)
8-
{ LoggerFactory = ISloContext.Factory })), args);
7+
await Cli.Run((_, config) => new SloTableContext(new YdbDataSource(
8+
new YdbConnectionStringBuilder(config.ConnectionString) { LoggerFactory = ISloContext.Factory })), args);

slo/src/EF/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ await Cli.Run((mode, config) =>
1111
return mode switch
1212
{
1313
CliMode.Create => new SloTableContext(new PooledDbContextFactory<TableDbContext>(
14-
new DbContextOptionsBuilder<TableDbContext>()
15-
.UseYdb(config.ConnectionString, builder => builder.DisableRetryOnFailure())
16-
.UseLoggerFactory(ISloContext.Factory)
17-
.Options)),
14+
new DbContextOptionsBuilder<TableDbContext>()
15+
.UseYdb(config.ConnectionString, builder => builder.DisableRetryOnFailure())
16+
.UseLoggerFactory(ISloContext.Factory)
17+
.Options)),
1818
CliMode.Run => new SloTableContext(new PooledDbContextFactory<TableDbContext>(
1919
new DbContextOptionsBuilder<TableDbContext>()
2020
.UseYdb(config.ConnectionString)

0 commit comments

Comments
 (0)