Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Commit

Permalink
ISSUE-#1: getting started on the crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
howdoicomputer committed Jan 30, 2017
1 parent 7fbe0ce commit c409851
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/crawler/cdec.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
defmodule Calidrought.Crawler.Cdec do
use GenServer
require Logger

def start_link do
queue = initial_queue()
GenServer.start_link(__MODULE__, queue)
end

def init(queue) do
schedule_work()
{:ok, queue}
end

defp schedule_work do
Process.send_after(self(), :work, 1 * 1 * 100)
end
end

0 comments on commit c409851

Please sign in to comment.