mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Use Dagger to @Inject DnsQueue everywhere that is feasible
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136062053
This commit is contained in:
parent
a13f6aded8
commit
6a738557fb
17 changed files with 47 additions and 15 deletions
|
@ -74,6 +74,7 @@ public final class HostCreateFlow extends LoggedInFlow implements TransactionalF
|
|||
@Inject @ClientId String clientId;
|
||||
@Inject @TargetId String targetId;
|
||||
@Inject HistoryEntry.Builder historyBuilder;
|
||||
@Inject DnsQueue dnsQueue;
|
||||
@Inject HostCreateFlow() {}
|
||||
|
||||
@Override
|
||||
|
@ -126,7 +127,7 @@ public final class HostCreateFlow extends LoggedInFlow implements TransactionalF
|
|||
.build());
|
||||
// Only update DNS if this is a subordinate host. External hosts have no glue to write, so
|
||||
// they are only written as NS records from the referencing domain.
|
||||
DnsQueue.create().addHostRefreshTask(targetId);
|
||||
dnsQueue.addHostRefreshTask(targetId);
|
||||
}
|
||||
ofy().save().entities(entitiesToSave);
|
||||
return createOutput(SUCCESS, HostCreateData.create(targetId, now));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue