From 6f935ddbd4283a2e223fbd3cd317d04dd9c56dec Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 6 Jun 2023 23:00:50 -0700 Subject: [PATCH] five seconds instead of 60 --- src/clj/auto_ap/routes/ezcater_xls.clj | 1 - src/clj/auto_ap/solr.clj | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/clj/auto_ap/routes/ezcater_xls.clj b/src/clj/auto_ap/routes/ezcater_xls.clj index ebf995d1..41052f6d 100644 --- a/src/clj/auto_ap/routes/ezcater_xls.clj +++ b/src/clj/auto_ap/routes/ezcater_xls.clj @@ -89,7 +89,6 @@ :tip (fmt-amount tip)}] :total (fmt-amount (+ food-total tax - tip (or adjustments 0.0))) :discount (fmt-amount (or adjustments 0.0)) :service-charge (fmt-amount (+ fee commission)) diff --git a/src/clj/auto_ap/solr.clj b/src/clj/auto_ap/solr.clj index 747a82b6..1ecb8d2f 100644 --- a/src/clj/auto_ap/solr.clj +++ b/src/clj/auto_ap/solr.clj @@ -136,7 +136,7 @@ (index-documents-raw [this index xs] (client/post (str (assoc (url/url solr-uri "solr" index "update") - :query {"commitWithin" 60000})) + :query {"commitWithin" 5000})) {:headers {"Content-Type" "application/json"} :socket-timeout 30000 @@ -147,7 +147,7 @@ (index-documents [this index xs] (client/post (str (assoc (url/url solr-uri "solr" index "update") - :query {"commitWithin" 60000})) + :query {"commitWithin" 5000})) {:headers {"Content-Type" "application/json"} :socket-timeout 30000 :connection-timeout 30000