Skip to content

Commit 3b270d8

Browse files
committed
Remove Task.Yield
1 parent 7fe51f7 commit 3b270d8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/LinkDotNet.Blog.Web/Features/BlogPostPublisher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public BlogPostPublisher(IServiceProvider serviceProvider, ILogger<BlogPostPubli
2222

2323
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
2424
{
25-
// await Task.Yield();
2625
logger.LogInformation("BlogPostPublisher is starting.");
2726

2827
using var timer = new PeriodicTimer(TimeSpan.FromHours(1));

tests/LinkDotNet.Blog.IntegrationTests/Web/Features/BlogPostPublisherTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
using System.Threading;
33
using System.Threading.Tasks;
44
using LinkDotNet.Blog.Domain;
5-
using LinkDotNet.Blog.IntegrationTests;
65
using LinkDotNet.Blog.TestUtilities;
76
using LinkDotNet.Blog.Web.Features;
87
using Microsoft.Extensions.DependencyInjection;
98
using Microsoft.Extensions.Logging;
109

11-
namespace LinkDotNet.Blog.UnitTests.Web.Features;
10+
namespace LinkDotNet.Blog.IntegrationTests.Web.Features;
1211

1312
public sealed class BlogPostPublisherTests : SqlDatabaseTestBase<BlogPost>, IDisposable
1413
{

0 commit comments

Comments
 (0)