Skip to content

Commit

Permalink
fix: Fix enoent in Indexer.NFTMediaHandler.Queue (blockscout#11653)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitosing authored Jan 15, 2025
1 parent 5fff3e0 commit 1af4563
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/indexer/lib/indexer/nft_media_handler/queue.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ defmodule Indexer.NFTMediaHandler.Queue do
end

def init(_) do
File.mkdir("./dets")
{:ok, queue} = :dets.open_file(@queue_storage, file: ~c"./dets/#{@queue_storage}", type: :bag)
{:ok, in_progress} = :dets.open_file(@tasks_in_progress, type: :set, file: ~c"./dets/#{@tasks_in_progress}")

Expand Down

0 comments on commit 1af4563

Please sign in to comment.