Skip to content

Commit

Permalink
chore: trivial change
Browse files Browse the repository at this point in the history
  • Loading branch information
D-D-H committed Oct 18, 2023
1 parent 86273e8 commit 0d85d05
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/i18n/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
all: '所有类型',
heapDump: '堆内存快照',
GCLog: 'GC 日志',
threadDump: '线程栈快照',
threadDump: '线程快照',

new: '新文件',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
package org.eclipse.jifa.server.enums;

public enum SchedulingStrategy {
STATIC, ELASTIC;
ELASTIC, STATIC

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public LockSupport(@Nullable DistributedLockService distributedLockService) {
}

void runUnderLock(Runnable runnable, String lockName) {
assert distributedLockService != null;
if (!distributedLockService.lock(lockName)) {
return;
}
Expand All @@ -41,6 +42,7 @@ void runUnderLockIfMaster(Runnable runnable, String lockName) {
boolean shouldLock = isMaster();

if (shouldLock) {
assert distributedLockService != null;
if (!distributedLockService.lock(lockName)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public StorageRelatedTasks(LockSupport lockSupport,
}

@Scheduled(initialDelay = 1, fixedDelay = 1, timeUnit = TimeUnit.MINUTES)
public void cleanup() throws Throwable {
public void cleanup() {
if (!shouldClean()) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jifa:
role: standalone-worker
storage-path: ${user.home}/jifa-storage
database-host: ${MYSQL_HOST:}
database-name: ${MYSQL_DATABASE:}
database-name: ${MYSQL_DATABASE:jifa}
database-user: ${MYSQL_USER:jifa}
database-password: ${MYSQL_PASSWORD:jifa}

Expand Down

0 comments on commit 0d85d05

Please sign in to comment.