mirror of
https://github.com/google/nomulus
synced 2026-02-07 05:21:15 +00:00
Use cursor to track updating of registrar sheet
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138221931
This commit is contained in:
@@ -111,7 +111,6 @@ public class SyncRegistrarsSheetAction implements Runnable {
|
||||
@Inject SyncRegistrarsSheet syncRegistrarsSheet;
|
||||
@Inject @Config("sheetLockTimeout") Duration timeout;
|
||||
@Inject @Config("sheetRegistrarId") Optional<String> idConfig;
|
||||
@Inject @Config("sheetRegistrarInterval") Duration interval;
|
||||
@Inject @Parameter("id") Optional<String> idParam;
|
||||
@Inject SyncRegistrarsSheetAction() {}
|
||||
|
||||
@@ -123,8 +122,7 @@ public class SyncRegistrarsSheetAction implements Runnable {
|
||||
return;
|
||||
}
|
||||
if (!idParam.isPresent()) {
|
||||
// TODO(b/19082368): Use a cursor.
|
||||
if (!syncRegistrarsSheet.wasRegistrarsModifiedInLast(interval)) {
|
||||
if (!syncRegistrarsSheet.wereRegistrarsModified()) {
|
||||
Result.NOTMODIFIED.send(response, null);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user