ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/utils/QueueUtils.java
@@ -174,12 +174,12 @@ * * @param queueName 队列名 * @param capacity 容量 * @param destroy 已存在是否销毁 * @param destroy 是否销毁 */ public static <T> boolean trySetBoundedQueueCapacity(String queueName, int capacity, boolean destroy) { RBoundedBlockingQueue<T> boundedBlockingQueue = CLIENT.getBoundedBlockingQueue(queueName); if (boundedBlockingQueue.isExists() && destroy) { destroyQueue(queueName); if (destroy) { boundedBlockingQueue.delete(); } return boundedBlockingQueue.trySetCapacity(capacity); }