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

Get access to message payload #211

Merged
merged 3 commits into from May 14, 2020
Merged

Get access to message payload #211

merged 3 commits into from May 14, 2020

Conversation

teivah
Copy link

@teivah teivah commented May 13, 2020

Closes #210.

// Nack signals the producing side an erroring condition or inconsistency.
func (m *message) Nack() error {
messageConfirmationCountInc("NACK")
trace.SpanError(m.span)
return nil
}

// Source returns the kafka topic where the message arrived.
func (m *message) Source() string {
Copy link
Author

Choose a reason for hiding this comment

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

I just swapped Source() and Nack() so that we have the same order in all the implem & the interface

drakos74
drakos74 previously approved these changes May 13, 2020
Copy link

@drakos74 drakos74 left a comment

Choose a reason for hiding this comment

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

nice! I always had this urge to make this change. Happy that the use-case came up :)

@codecov
Copy link

codecov bot commented May 13, 2020

Codecov Report

Merging #211 into master will decrease coverage by 0.10%.
The diff coverage is 86.20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #211      +/-   ##
==========================================
- Coverage   84.48%   84.38%   -0.11%     
==========================================
  Files          52       52              
  Lines        3074     3099      +25     
==========================================
+ Hits         2597     2615      +18     
- Misses        398      402       +4     
- Partials       79       82       +3     
Impacted Files Coverage Δ
client/amqp/amqp.go 40.98% <ø> (ø)
client/amqp/option.go 66.66% <ø> (ø)
client/amqp/user.pb.go 26.92% <ø> (ø)
client/http/option.go 100.00% <ø> (ø)
client/redis/redis.go 44.44% <ø> (ø)
client/sns/message.go 97.53% <ø> (ø)
client/sns/publisher.go 93.33% <ø> (ø)
client/sql/sql.go 86.25% <ø> (ø)
client/sqs/message.go 92.50% <ø> (ø)
client/sqs/publisher.go 93.33% <ø> (ø)
... and 62 more

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 726c029...266aca1. Read the comment docs.

@teivah teivah requested a review from drakos74 May 14, 2020 06:14
@fpapadopou
Copy link

🚢

@mantzas mantzas merged commit e15c900 into beatlabs:master May 14, 2020
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.

Get access to message payload
4 participants