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

zmq4: resend subscriptions in socket.addConn #128

Merged
merged 1 commit into from Jun 17, 2022

Conversation

thielepaul
Copy link
Contributor

@thielepaul thielepaul commented Jun 9, 2022

Fixes #116

@codecov
Copy link

codecov bot commented Jun 13, 2022

Codecov Report

Merging #128 (e092dc6) into main (16d169c) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
- Coverage   67.53%   67.41%   -0.12%     
==========================================
  Files          29       29              
  Lines        1814     1817       +3     
==========================================
  Hits         1225     1225              
- Misses        489      491       +2     
- Partials      100      101       +1     
Impacted Files Coverage Δ
socket.go 83.23% <100.00%> (+0.19%) ⬆️
sub.go 76.92% <100.00%> (+0.45%) ⬆️
conn.go 55.17% <0.00%> (-1.15%) ⬇️

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 16d169c...e092dc6. Read the comment docs.

Copy link
Contributor

@sbinet sbinet left a comment

Choose a reason for hiding this comment

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

looking good.
see my little nit-pick oriented comments below.

(thanks for the PR)

socket.go Outdated Show resolved Hide resolved
socket.go Outdated Show resolved Hide resolved
@thielepaul thielepaul force-pushed the resend-subs-on-add-conn branch 2 times, most recently from 630578d to af9af68 Compare June 14, 2022 17:40
socket.go Outdated Show resolved Hide resolved
socket_test.go Outdated Show resolved Hide resolved
socket_test.go Outdated Show resolved Hide resolved
socket_test.go Outdated Show resolved Hide resolved
socket_test.go Outdated Show resolved Hide resolved
@thielepaul
Copy link
Contributor Author

thielepaul commented Jun 15, 2022

@sbinet I don't understand how the coverage in conn.go is reduced by my changes, do you understand what is going on there?

@sbinet
Copy link
Contributor

sbinet commented Jun 16, 2022

code coverage (with codecov) can be a bit flaky, in my experience.

Copy link
Contributor

@sbinet sbinet left a comment

Choose a reason for hiding this comment

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

LGTM.

could you send another PR against go-zeromq/license, adding yourself to the AUTHORS and/or CONTRIBUTORS files?

thanks again for the PR.

@sbinet
Copy link
Contributor

sbinet commented Jun 17, 2022

needs go-zeromq/license#12

@sbinet sbinet merged commit c17962e into go-zeromq:main Jun 17, 2022
@sbinet
Copy link
Contributor

sbinet commented Jun 17, 2022

thanks again (and welcome!)

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.

SUB socket SetOption must come after Dial, goczmq/pebbe don't have such limitation
2 participants