refact(core): early stop unnecessary loops in edge cache (#2211)

This commit is contained in:
starry-sky_down-to-earth 2023-05-17 00:23:45 +08:00 committed by GitHub
parent 0f2faf48dc
commit f23c648937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ public final class CachedGraphTransaction extends GraphTransaction {
if (edge.expired()) {
this.edgesCache.invalidate(cacheKey);
value = null;
break;
}
}
}