fix compilation warnings

pull/1370/head
Ayrat Badykov 6 years ago
parent fb5d4b20d9
commit 734583c1d2
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 5
      apps/indexer/lib/indexer/replaced_transaction/fetcher.ex

@ -16,7 +16,8 @@ defmodule Indexer.ReplacedTransaction.Fetcher do
alias Explorer.Repo alias Explorer.Repo
alias Indexer.ReplacedTransaction alias Indexer.ReplacedTransaction
@default_interval 1_000 # 30 minutes
@default_interval 60_000 * 30
# 60 seconds # 60 seconds
@query_timeout 60_000 @query_timeout 60_000
@ -101,7 +102,7 @@ defmodule Indexer.ReplacedTransaction.Fetcher do
) )
try do try do
Repo.update_all(query, []) Repo.update_all(query, [], timeout: @query_timeout)
rescue rescue
error -> error ->
Logger.error(fn -> ["Failed to make pending transactions dropped: ", inspect(error)] end) Logger.error(fn -> ["Failed to make pending transactions dropped: ", inspect(error)] end)

Loading…
Cancel
Save