Skip to content

Commit e31e1fc

Browse files
committed
* fix violation of ReSharper rule RedundantLambdaParameterType @ AuthorRevisionSaver.SaveAuthorExpGrade()
@ crawler * rename method `SaveFailedImages()` to `Save()` @ FailedImageHandler.cs @ imagePipeline * update NuGet package `Google.Protobuf` @ tbClient @ c#
1 parent 219941b commit e31e1fc

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

c#/crawler/packages.lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
},
107107
"Google.Protobuf": {
108108
"type": "Transitive",
109-
"resolved": "3.27.2",
110-
"contentHash": "0wdgA3LO9mBS477jieBFs4pU1sWhVtwv/P+i9nAEiFDQyUA7PPHDBbJL1CeqYtV18jLiq9og4n7wSVCO171OBg=="
109+
"resolved": "3.27.3",
110+
"contentHash": "ld+oe1+Mc6no643d8otGm6Zylu7KBpGnAiqOW3nOpV8VxUuqhz70vRNKUU5grLaCeuUQVF8t9dm8TgmkTMr1Tg=="
111111
},
112112
"Humanizer.Core": {
113113
"type": "Transitive",
@@ -540,7 +540,7 @@
540540
"tbclient": {
541541
"type": "Project",
542542
"dependencies": {
543-
"Google.Protobuf": "[3.27.2, )"
543+
"Google.Protobuf": "[3.27.3, )"
544544
}
545545
},
546546
"tbm.shared": {

c#/crawler/src/Tieba/Crawl/Saver/Related/AuthorRevisionSaver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public Action SaveAuthorExpGrade(CrawlerDbContext db, IReadOnlyCollection<User.P
1616
_authorExpGradeSaverLocks.Value,
1717
db.AuthorExpGradeRevisions,
1818
e => e.ExpGrade,
19-
(User.Parsed e) => e.Uid,
19+
e => e.Uid,
2020
(a, b) => a != b,
2121
rev => new()
2222
{

c#/imagePipeline/src/Consumer/FailedImageHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ public Func<TSource, Either<ImageId, TResult>> Try<TSource, TResult>
2828
}
2929
};
3030

31-
public void SaveFailedImages(ImagePipelineDbContext db) => db.ImageFailed.AddRange(_failedImages);
31+
public void Save(ImagePipelineDbContext db) => db.ImageFailed.AddRange(_failedImages);
3232
}

c#/imagePipeline/src/ImageBatchConsumingWorker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ [.. ExceptConsumed(i => i.OcrConsumed)],
134134
imageKeysWithMatrix.ForEach(i => i.Matrix.Dispose());
135135
}
136136

137-
failedImageHandler.SaveFailedImages(db);
137+
failedImageHandler.Save(db);
138138
_ = await db.SaveChangesAsync(stoppingToken); // https://github.com/dotnet/EntityFramework.Docs/pull/4358
139139
await transaction.CommitAsync(stoppingToken);
140140
}

c#/tbClient/TbClient.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<Compile Include="..\..\tbclient.protobuf\tbm_cs\**" Link="%(RecursiveDir)%(Filename)%(Extension)" />
44
</ItemGroup>
55
<ItemGroup>
6-
<PackageReference Include="Google.Protobuf" Version="3.27.2" />
6+
<PackageReference Include="Google.Protobuf" Version="3.27.3" />
77
</ItemGroup>
88
</Project>

c#/tbClient/packages.lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"net8.0": {
55
"Google.Protobuf": {
66
"type": "Direct",
7-
"requested": "[3.27.2, )",
8-
"resolved": "3.27.2",
9-
"contentHash": "0wdgA3LO9mBS477jieBFs4pU1sWhVtwv/P+i9nAEiFDQyUA7PPHDBbJL1CeqYtV18jLiq9og4n7wSVCO171OBg=="
7+
"requested": "[3.27.3, )",
8+
"resolved": "3.27.3",
9+
"contentHash": "ld+oe1+Mc6no643d8otGm6Zylu7KBpGnAiqOW3nOpV8VxUuqhz70vRNKUU5grLaCeuUQVF8t9dm8TgmkTMr1Tg=="
1010
}
1111
}
1212
}

0 commit comments

Comments
 (0)