Merge pull request #465 from mabaiwan/develop

Code formatting
pull/467/head
小马哥 2 years ago committed by GitHub
commit 8f0ee22d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -172,7 +172,7 @@ public class ConfigServiceImpl implements ConfigService {
config.setMd5(Md5Util.getTpContentMd5(config)); config.setMd5(Md5Util.getTpContentMd5(config));
recordOperationLog(config); recordOperationLog(config);
try { try {
// Create a temporary configuration of a thread pool configuration instance, // Create a temporary configuration of a thread pool configuration instance,
// which can also be used as a historical configuration, but it is aimed at a single node. // which can also be used as a historical configuration, but it is aimed at a single node.
if (StringUtil.isNotBlank(identify)) { if (StringUtil.isNotBlank(identify)) {
ConfigInstanceInfo instanceInfo = BeanUtil.convert(config, ConfigInstanceInfo.class); ConfigInstanceInfo instanceInfo = BeanUtil.convert(config, ConfigInstanceInfo.class);
@ -202,7 +202,8 @@ public class ConfigServiceImpl implements ConfigService {
.bizKey(requestParam.getItemId() + "_" + requestParam.getTpId()) .bizKey(requestParam.getItemId() + "_" + requestParam.getTpId())
.bizNo(requestParam.getItemId() + "_" + requestParam.getTpId()) .bizNo(requestParam.getItemId() + "_" + requestParam.getTpId())
.operator(Optional.ofNullable(UserContext.getUserName()).orElse("-")) .operator(Optional.ofNullable(UserContext.getUserName()).orElse("-"))
.action(String.format("核心线程: %d, 最大线程: %d, 队列类型: %d, 队列容量: %d, 拒绝策略: %d", requestParam.getCoreSize(), requestParam.getMaxSize(), requestParam.getQueueType(), requestParam.getCapacity(), requestParam.getRejectedType())) .action(String.format("核心线程: %d, 最大线程: %d, 队列类型: %d, 队列容量: %d, 拒绝策略: %d", requestParam.getCoreSize(), requestParam.getMaxSize(), requestParam.getQueueType(),
requestParam.getCapacity(), requestParam.getRejectedType()))
.category("THREAD_POOL_UPDATE") .category("THREAD_POOL_UPDATE")
.detail(JSONUtil.toJSONString(requestParam)) .detail(JSONUtil.toJSONString(requestParam))
.createTime(new Date()) .createTime(new Date())

Loading…
Cancel
Save