From: wmorgan Date: Fri, 23 Nov 2007 22:17:27 +0000 (+0000) Subject: speed up imap load time X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ba60d268357779027cefbfff934e78490d2ad94d;p=sup speed up imap load time git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@707 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/bin/sup b/bin/sup index a98753f..1a11537 100644 --- a/bin/sup +++ b/bin/sup @@ -171,24 +171,6 @@ begin bm.draw_screen - begin - Index.usual_sources.each { |s| s.check } - rescue SourceError - # do nothing! we'll report it at the next step - end - Redwood::report_broken_sources - - Index.usual_sources.each do |s| - next unless s.respond_to? :connect - reporting_thread do - begin - s.connect - rescue SourceError => e - Redwood::log "fatal error loading from #{s}: #{e.message}" - end - end - end - imode.load_threads :num => ibuf.content_height, :when_done => lambda { reporting_thread { sleep 1; PollManager.poll } unless $opts[:no_threads] } unless $opts[:no_threads]