diff --git a/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs b/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs index 4e8f5fff..1fa422f6 100644 --- a/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs +++ b/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs @@ -92,7 +92,7 @@ namespace SJZY.Track.Application options.FailedRetryCount = configuration.GetValue("CAP:FailedRetryCount"); options.ConsumerThreadCount = configuration.GetValue("CAP:ConsumerThreadCount"); options.SucceedMessageExpiredAfter = configuration.GetValue("CAP:SucceedMessageExpiredAfter"); - options.UseDispatchingPerGroup = true; + options.UseDispatchingPerGroup = configuration.GetValue("CAP:UseDispatchingPerGroup"); options.EnableConsumerPrefetch = true; options.UseDashboard(dashboardOptions =>