修改hippo4j-core文档的小错误

pull/333/head
Lucas 3 years ago
parent 48d1b01f97
commit 8b9da70aa0

@ -116,13 +116,10 @@ spring:
package cn.hippo4j.example; package cn.hippo4j.example;
import cn.hippo4j.core.executor.DynamicThreadPool; import cn.hippo4j.core.executor.DynamicThreadPool;
import cn.hippo4j.core.executor.support.ResizableCapacityLinkedBlockIngQueue;
import cn.hippo4j.core.executor.support.ThreadPoolBuilder; import cn.hippo4j.core.executor.support.ThreadPoolBuilder;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
@Configuration @Configuration
public class ThreadPoolConfig { public class ThreadPoolConfig {
@ -148,7 +145,7 @@ public class ThreadPoolConfig {
.threadPoolId(threadPoolId) .threadPoolId(threadPoolId)
.dynamicPool() .dynamicPool()
.build(); .build();
return dynamicExecutor; return messageProduceDynamicExecutor;
} }
} }

Loading…
Cancel
Save