Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Call p2pservice.connect_network() once on start #4094

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

maaktweluit
Copy link
Contributor

Golem always started with some duplicate peer warnings.

When looking into this i found that p2pservice.connect_network() is called twice, causing duplicate peer connections.

Fixed this bug and improved the logging surrounding it.

@maaktweluit maaktweluit self-assigned this Apr 8, 2019
@ghost ghost added the in progress label Apr 8, 2019
Copy link

@Wiezzel Wiezzel left a comment

Choose a reason for hiding this comment

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

LGTM
By the way start_network() method is too damn long.

@codecov
Copy link

codecov bot commented Apr 8, 2019

Codecov Report

Merging #4094 into develop will increase coverage by 0.07%.
The diff coverage is 63.63%.

@@             Coverage Diff             @@
##           develop    #4094      +/-   ##
===========================================
+ Coverage    88.61%   88.68%   +0.07%     
===========================================
  Files          214      214              
  Lines        18626    18629       +3     
===========================================
+ Hits         16505    16522      +17     
+ Misses        2121     2107      -14

@maaktweluit maaktweluit merged commit 68e3236 into develop Apr 10, 2019
@maaktweluit maaktweluit deleted the mwu/p2psession-log branch April 10, 2019 09:02
@ghost ghost removed the in progress label Apr 10, 2019
maaktweluit added a commit that referenced this pull request Apr 10, 2019
Call p2pservice.connect_network() once on start
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants