Skip to content

Commit

Permalink
Merge pull request #231 from rollbar/remove-duplicated-schedule_paylo…
Browse files Browse the repository at this point in the history
…ad-method

Remove duplicated #schedule_payload method. Fixes #230.
  • Loading branch information
brianr committed Apr 1, 2015
2 parents 0a61916 + 97c60e1 commit f654738
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,26 +450,6 @@ def truncate_payload(payload, byte_threshold)

## Delivery functions

def schedule_payload(payload)
log_info '[Rollbar] Scheduling payload'

if configuration.use_async
unless configuration.async_handler
configuration.async_handler = method(:default_async_handler)
end

if configuration.write_to_file
unless @file_semaphore
@file_semaphore = Mutex.new
end
end

configuration.async_handler.call(payload)
else
process_payload(payload)
end
end

def send_payload_using_eventmachine(payload)
body = dump_payload(payload)
headers = { 'X-Rollbar-Access-Token' => payload['access_token'] }
Expand Down

0 comments on commit f654738

Please sign in to comment.