diff --git a/starters/threadpool/server/src/main/java/cn/hippo4j/springboot/starter/support/DynamicThreadPoolConfigService.java b/starters/threadpool/server/src/main/java/cn/hippo4j/springboot/starter/support/DynamicThreadPoolConfigService.java index f28a0df5..d77d4cd8 100644 --- a/starters/threadpool/server/src/main/java/cn/hippo4j/springboot/starter/support/DynamicThreadPoolConfigService.java +++ b/starters/threadpool/server/src/main/java/cn/hippo4j/springboot/starter/support/DynamicThreadPoolConfigService.java @@ -72,7 +72,7 @@ public class DynamicThreadPoolConfigService extends AbstractDynamicThreadPoolSer checkThreadPoolParameter(registerParameter); String threadPoolId = registerParameter.getThreadPoolId(); try { - failDynamicThreadPoolRegisterWrapper(registerWrapper); + fillDynamicThreadPoolRegisterWrapper(registerWrapper); Result registerResult = httpAgent.httpPost(REGISTER_DYNAMIC_THREAD_POOL_PATH, registerWrapper); if (registerResult == null || !registerResult.isSuccess()) { throw new RuntimeException("Dynamic thread pool registration returns error." @@ -109,7 +109,7 @@ public class DynamicThreadPoolConfigService extends AbstractDynamicThreadPoolSer Assert.isTrue(!registerParameter.getThreadPoolId().contains("+"), "The thread pool contains sensitive characters."); } - private void failDynamicThreadPoolRegisterWrapper(DynamicThreadPoolRegisterWrapper registerWrapper) { + private void fillDynamicThreadPoolRegisterWrapper(DynamicThreadPoolRegisterWrapper registerWrapper) { registerWrapper.setTenantId(properties.getNamespace()); registerWrapper.setItemId(properties.getItemId()); }