Skip to content
Snippets Groups Projects
Commit 655621f7 authored by Augustin Jaujay's avatar Augustin Jaujay
Browse files

Finalisation de la Base de données : timer entre les insertions

parent 7221f90b
Branches 219-gestion-bdd
Tags
No related merge requests found
Pipeline #4318 passed
......@@ -263,7 +263,7 @@ defmodule DB do
++ to_charlist(List.last(chk))
++ ' from '
++ @base_url)
Poison.decode!(body) |> Enum.map(fn b -> DB.insert('block', b["number"], b) end)
Poison.decode!(body) |> Enum.map(fn b -> DB.insert('block', b["number"], b); :timer.sleep(50) end)
_ ->
Logger.info('---Failed when filling DataBase---')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment