# File lib/livejournal/sync.rb, line 117
      def run_sync  # :yields: entries_hash, lastsync, remaining_count
        return if @logitems.empty?

        lastsync = @lastsync
        while @logitems.size > 0
          req = Request::GetEvents.new(@user, :lastsync => lastsync)
          entries = req.run
          # pop off all items that we now have entries for
          entries.each do |itemid, entry|
            time = @logitems.delete itemid
            lastsync = time if lastsync.nil? or time > lastsync
          end
          yield entries, lastsync, @logitems.size
        end
      end