From 946293980699dc79e981f9c19e88e9e6246b398c Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 22 Jan 2019 18:09:53 +0300 Subject: [PATCH] set default interval to 1 second --- apps/indexer/lib/indexer/replaced_transaction/fetcher.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex b/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex index 9e9f4b4fcb..4a0b8f433c 100644 --- a/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex +++ b/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex @@ -16,8 +16,8 @@ defmodule Indexer.ReplacedTransaction.Fetcher do alias Explorer.Repo alias Indexer.ReplacedTransaction - # 30 minutes - @default_interval 60_000 * 30 + # 1 second + @default_interval 1_000 # 60 seconds @query_timeout 60_000 @@ -53,7 +53,7 @@ defmodule Indexer.ReplacedTransaction.Fetcher do state = %__MODULE__{ - interval: opts[:pending_transaction_interval] || @default_interval + interval: opts[:replaced_transaction_interval] || @default_interval } |> schedule_find()