Skip to content

Commit

Permalink
moved web configs at application level
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Redaelli committed Jun 4, 2010
1 parent c352b8f commit 38b7f19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ebot_web.erl
Expand Up @@ -354,7 +354,7 @@ check_recover_crawlers(State) ->
{Depth, Pid};
false ->
error_logger:warning_report({?MODULE, ?LINE, {check_recover_crawlers, recovering_dead_crawler}}),
start_crawler(Depth, State)
start_crawler(Depth)
end
end,
Crawlers).
Expand Down Expand Up @@ -409,7 +409,7 @@ is_valid_url(Url) ->
ebot_util:is_valid_using_any_regexps(Url, UrlAnyRE) andalso
ebot_url_util:is_valid_url_using_any_mime_regexps(Url, MimeAnyRE).

start_crawler(Depth, State) ->
start_crawler(Depth) ->
Pid = spawn( ?MODULE, crawl, [Depth]),
{Depth, Pid}.

Expand All @@ -418,7 +418,7 @@ start_crawlers(State) ->

NewCrawlers = lists:foldl(
fun({Depth,Tot}, Crawlers) ->
OtherCrawlers = start_crawlers(Depth, Tot, State),
OtherCrawlers = start_crawlers(Depth, Tot),
lists:append( Crawlers, OtherCrawlers)
end,
State#state.crawlers_list,
Expand All @@ -429,9 +429,9 @@ start_crawlers(State) ->
},
NewState.

start_crawlers(Depth, Total, State) ->
start_crawlers(Depth, Total) ->
lists:map(
fun(_) -> start_crawler(Depth, State) end,
fun(_) -> start_crawler(Depth) end,
lists:seq(1,Total)).


Expand Down

0 comments on commit 38b7f19

Please sign in to comment.