commit | b7b8b895f8588d5d243027d710151737ccafe754 | [log] [tgz] |
---|---|---|
author | Sven Selberg <svense@axis.com> | Wed Nov 03 13:10:29 2021 +0100 |
committer | Sven Selberg <svense@axis.com> | Thu Nov 04 12:00:58 2021 +0100 |
tree | 3d6a8820ec1ae07bac2460544f2e7ce152be831b | |
parent | 3d4bf314dd0d3bbe9702f1050d8b506607c4467a [diff] |
Don't call event repository when trustLocalCache is set Change-Id: Id3fdab48a856b1f6f33f7e7688b61da9b1f49e1a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java b/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java index 3812250..fdd62b1 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java +++ b/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java
@@ -111,6 +111,9 @@ .findAny() .orElse(Optional.empty()); if (id.isPresent()) return id; + if (cfg.trustLocalCache()) { + return Optional.empty(); + } List<UUID> ids; try {