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

dkg/sync: move connected logs to server #771

Merged
merged 2 commits into from
Jul 7, 2022
Merged

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Jul 7, 2022

Moves connected logs to server and removes inbound and outbound logs from client and server.

category: bug
ticket: #762

@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

Merging #771 (965b8fb) into main (9747255) will increase coverage by 0.39%.
The diff coverage is 100.00%.

❗ Current head 965b8fb differs from pull request most recent head fa779dc. Consider uploading reports for the commit fa779dc to get more accurate results

@@            Coverage Diff             @@
##             main     #771      +/-   ##
==========================================
+ Coverage   54.16%   54.56%   +0.39%     
==========================================
  Files         109      109              
  Lines       10648    10647       -1     
==========================================
+ Hits         5768     5810      +42     
+ Misses       4020     3976      -44     
- Partials      860      861       +1     
Impacted Files Coverage Δ
dkg/sync/client.go 71.77% <ø> (-0.23%) ⬇️
dkg/sync/server.go 68.91% <100.00%> (ø)
core/qbft/qbft.go 80.90% <0.00%> (+9.22%) ⬆️

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 9747255...fa779dc. Read the comment docs.

@dB2510 dB2510 linked an issue Jul 7, 2022 that may be closed by this pull request
@@ -109,11 +110,12 @@ func (s *Server) isConnected(pID peer.ID) bool {
}

// setConnected sets the shared connected state for the peer.
func (s *Server) setConnected(pID peer.ID) {
func (s *Server) setConnected(ctx context.Context, pID peer.ID) {
Copy link
Contributor

Choose a reason for hiding this comment

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

another way is to return the length and log with context on the outside

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@dB2510 dB2510 added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jul 7, 2022
@obol-bulldozer obol-bulldozer bot merged commit d6f6951 into main Jul 7, 2022
@obol-bulldozer obol-bulldozer bot deleted the dhruv/synclogs branch July 7, 2022 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DKG sync: Move connected logs to server
3 participants