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

Bootstrap empty RT and optimize allocs #627

Closed
wants to merge 7 commits into from

Conversation

Stebalien
Copy link
Member

No description provided.

@@ -262,7 +268,7 @@ func makeDHT(ctx context.Context, h host.Host, cfg config) (*IpfsDHT, error) {
triggerSelfLookup: make(chan chan<- error),
queryPeerFilter: cfg.queryPeerFilter,
routingTablePeerFilter: cfg.routingTable.peerFilter,
fixLowPeersChan: make(chan struct{}),
fixLowPeersChan: make(chan struct{}, 1),
Copy link
Member Author

Choose a reason for hiding this comment

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

IIRC, I added this buffer so we'd fix low peers if we got a "fix low peers" signal while bootstrapping.

@Stebalien
Copy link
Member Author

cc @aarshkshah1992

@aarshkshah1992 aarshkshah1992 marked this pull request as ready for review May 8, 2020 02:43
@aarshkshah1992
Copy link
Contributor

@Stebalien Have added a solid test as well. Please take a look when you can.

@aarshkshah1992 aarshkshah1992 changed the title WIP active re-bootstrapping Bootstrap empty RT and optimize allocs May 8, 2020
@aarshkshah1992
Copy link
Contributor

Closing in favour of #631 .

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.

2 participants