Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Courier queuing for dummies #521

Merged
merged 1 commit into from
Nov 11, 2021
Merged

Courier queuing for dummies #521

merged 1 commit into from
Nov 11, 2021

Conversation

rowanseymour
Copy link
Contributor

Makes the LUA script to queue messages to courier easier to understand

// get the time in seconds since the epoch as a floating point number
// e.g. 2021-11-10T15:10:49.123456+00:00 => "1636557205.123456"
now := dates.Now()
epochSeconds := strconv.FormatFloat(float64(now.UnixNano()/int64(time.Microsecond))/float64(1000000), 'f', 6, 64)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed for clarity.. it's the number of seconds

@codecov
Copy link

codecov bot commented Nov 10, 2021

Codecov Report

Merging #521 (d57fd61) into main (28bdca9) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #521      +/-   ##
==========================================
+ Coverage   57.51%   57.56%   +0.04%     
==========================================
  Files         125      125              
  Lines        8790     8789       -1     
==========================================
+ Hits         5056     5059       +3     
+ Misses       2942     2940       -2     
+ Partials      792      790       -2     
Impacted Files Coverage Δ
core/msgio/courier.go 70.73% <100.00%> (+8.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28bdca9...d57fd61. Read the comment docs.

@rowanseymour rowanseymour changed the base branch from main to 7.1 November 10, 2021 21:10
@rowanseymour rowanseymour merged commit da30dbc into 7.1 Nov 11, 2021
@rowanseymour rowanseymour deleted the simpler_courier_script branch November 11, 2021 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants