Skip to content

Commit

Permalink
http errback
Browse files Browse the repository at this point in the history
  • Loading branch information
mattb committed Mar 18, 2012
1 parent 75d0e54 commit 46f9e19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion foursquare-twitter/track2s3.rb
Expand Up @@ -21,7 +21,7 @@ def object_parsed(obj)
if @@count % 1000 == 0
puts @@count
end
if @@count > 5
if @@count > 35000
filename = "#{Time.now.to_i}"
puts "#{filename} uploading."

Expand Down Expand Up @@ -55,6 +55,10 @@ def object_parsed(obj)
http.stream do |chunk|
parse << chunk
end
http.errback do
puts "HTTP error."
EM.stop
end


end

0 comments on commit 46f9e19

Please sign in to comment.