修改hippo4j-core文档的小错误

pull/331/head
lucas 3 years ago
parent 48d1b01f97
commit 6d62fca6e8

@ -116,13 +116,11 @@ 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 +146,7 @@ public class ThreadPoolConfig {
.threadPoolId(threadPoolId) .threadPoolId(threadPoolId)
.dynamicPool() .dynamicPool()
.build(); .build();
return dynamicExecutor; return messageProduceDynamicExecutor;
} }
} }

Loading…
Cancel
Save