commit | fe99eb4399054d3fd67ff2330aa92841d76e53bb | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Mon Aug 07 14:08:56 2017 -0400 |
committer | Dave Borowitz <dborowitz@google.com> | Mon Aug 07 14:08:56 2017 -0400 |
tree | 1b62bd361c61bf946666fbfed5150613c9298a5e | |
parent | be803eb40fdcd5bfa11d9a808863585f86228e06 [diff] |
Update to new RetryHelper.Options Change-Id: I7d19f03527b3e627cd5c759798cebba1f05d9890
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java index 86f87a8..4144381 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java +++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java
@@ -103,12 +103,15 @@ } return null; }, - new RetryListener() { - @Override - public <V> void onRetry(Attempt<V> attempt) { - monitor.update(-notes.size()); - } - }); + RetryHelper.options() + .listener( + new RetryListener() { + @Override + public <V> void onRetry(Attempt<V> attempt) { + monitor.update(-notes.size()); + } + }) + .build()); } private Map.Entry<Project.NameKey, List<ChangeNotes>> next() {