-
Notifications
You must be signed in to change notification settings - Fork 79
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
dkg/sync/server.go
Outdated
@@ -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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Moves connected logs to server and removes inbound and outbound logs from client and server.
category: bug
ticket: #762