Skip to content

Commit

Permalink
perf[cache]: async load single cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Mar 25, 2024
1 parent cd1ae54 commit 34ac818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/src/main/java/com/zfoo/net/util/SingleCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public V get() {
try {
if (now > refreshTime) {
refreshTime = now + refreshDuration;
cache = supplier.get();
EventBus.asyncExecute(() -> cache = supplier.get());
}
} finally {
lock.unlock();
Expand Down

0 comments on commit 34ac818

Please sign in to comment.