From f2275989204e677c809d69f3f69feaff237e769a Mon Sep 17 00:00:00 2001 From: mcilwain Date: Fri, 2 Dec 2016 10:42:25 -0800 Subject: [PATCH] Inject DnsQueue in DomainCreateFlow ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140867232 --- java/google/registry/flows/domain/DomainCreateFlow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/google/registry/flows/domain/DomainCreateFlow.java b/java/google/registry/flows/domain/DomainCreateFlow.java index 5caf0d256..e244acf8a 100644 --- a/java/google/registry/flows/domain/DomainCreateFlow.java +++ b/java/google/registry/flows/domain/DomainCreateFlow.java @@ -167,6 +167,7 @@ public class DomainCreateFlow implements TransactionalFlow { @Inject EppResponse.Builder responseBuilder; @Inject DomainCreateFlowCustomLogic customLogic; @Inject DomainPricingLogic pricingLogic; + @Inject DnsQueue dnsQueue; @Inject DomainCreateFlow() {} @Override @@ -416,7 +417,7 @@ public class DomainCreateFlow implements TransactionalFlow { private void enqueueTasks( boolean isSunriseCreate, boolean hasClaimsNotice, DomainResource newDomain) { if (newDomain.shouldPublishToDns()) { - DnsQueue.create().addDomainRefreshTask(newDomain.getFullyQualifiedDomainName()); + dnsQueue.addDomainRefreshTask(newDomain.getFullyQualifiedDomainName()); } if (hasClaimsNotice || isSunriseCreate) { LordnTask.enqueueDomainResourceTask(newDomain);