From ce93bbae01dc7089cbdca510574e0009b7f669ed Mon Sep 17 00:00:00 2001
From: George Claghorn <george@basecamp.com>
Date: Fri, 19 Oct 2018 17:34:06 -0400
Subject: Tighten up the acceptable drift

---
 .../action_mailbox/ingresses/mailgun/inbound_emails_controller.rb     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'app/controllers')

diff --git a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb
index 2ca970fa8e..11c47a5ea9 100644
--- a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb
+++ b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb
@@ -38,9 +38,9 @@ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ActionMailbox
           ActiveSupport::SecurityUtils.secure_compare signature, expected_signature
         end
 
-        # Allow for 10 minutes of drift between Mailgun time and local server time.
+        # Allow for 2 minutes of drift between Mailgun time and local server time.
         def recent?
-          time >= 10.minutes.ago
+          time >= 2.minutes.ago
         end
 
         def expected_signature
-- 
cgit v1.2.3