Skip to content

Commit 4d1d425

Browse files
committed
pass timestamp through for performance analysis
1 parent 45001dc commit 4d1d425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/esdb/replay.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ module ESDB
22
class Replay < ESDB::Resource
33
# POSTs a given replay file to esdb and returns the job ID if it was
44
# successfully queued for processing.
5-
def self.upload(file, channel)
5+
def self.upload(file, channel, ggtracker_received_at)
66
replay = self.new
7-
response = JSON.parse(RestClient.post(replay.url, :file => file, :access_token => ESDB.api_key, :channel => channel))
7+
response = JSON.parse(RestClient.post(replay.url, :file => file, :access_token => ESDB.api_key, :channel => channel, :ggtracker_received_at => ggtracker_received_at.to_f))
88
Rails.logger.info response.inspect
99

1010
response['job'] ? response['job'] : false

0 commit comments

Comments
 (0)