From 6655c393b7152854ebbcccf20993b5fd9bed448c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=BC=9F?= Date: Mon, 11 Oct 2021 19:00:26 +0800 Subject: [PATCH] format code --- src/DotXxlJob.Core/Extensions/ServiceCollectionExtensions.cs | 1 - tests/DotXxlJob.Core.Tests/BeanTaskExecutorTest.cs | 2 +- tests/DotXxlJob.Core.Tests/DefaultJobHandlerFactory.cs | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DotXxlJob.Core/Extensions/ServiceCollectionExtensions.cs b/src/DotXxlJob.Core/Extensions/ServiceCollectionExtensions.cs index 21520e4..cc727fd 100644 --- a/src/DotXxlJob.Core/Extensions/ServiceCollectionExtensions.cs +++ b/src/DotXxlJob.Core/Extensions/ServiceCollectionExtensions.cs @@ -50,7 +50,6 @@ namespace DotXxlJob.Core services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); - services.AddSingleton(new JobHandlerCache()); return services; } diff --git a/tests/DotXxlJob.Core.Tests/BeanTaskExecutorTest.cs b/tests/DotXxlJob.Core.Tests/BeanTaskExecutorTest.cs index 8fc15df..0eeaeec 100644 --- a/tests/DotXxlJob.Core.Tests/BeanTaskExecutorTest.cs +++ b/tests/DotXxlJob.Core.Tests/BeanTaskExecutorTest.cs @@ -6,7 +6,7 @@ using Xunit; namespace DotXxlJob.Core.Tests { - public class BeanTaskExecutorTest + public class BeanTaskExecutorTest { [Fact] public async Task Repeated_Job_Handler() diff --git a/tests/DotXxlJob.Core.Tests/DefaultJobHandlerFactory.cs b/tests/DotXxlJob.Core.Tests/DefaultJobHandlerFactory.cs index c342e0f..6afb6e8 100644 --- a/tests/DotXxlJob.Core.Tests/DefaultJobHandlerFactory.cs +++ b/tests/DotXxlJob.Core.Tests/DefaultJobHandlerFactory.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using DotXxlJob.Core.Model; using Microsoft.Extensions.DependencyInjection; @@ -7,7 +6,7 @@ using Xunit; namespace DotXxlJob.Core.Tests { - public class DefaultJobHandlerFactory + public class DefaultJobHandlerFactory { [Fact] public async Task Repeated_Job_Handler()