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

Control provider workers with experiment flag #110

Merged
merged 1 commit into from
Apr 30, 2019

Conversation

michaelavila
Copy link
Contributor

We are working on removing the providing behavior from go-bitswap and putting it into its own module in go-ipfs. At first the feature will be experimental, and so this commit allows us to disable the provide announcements by setting bitswap.ProvideEnabled to false before creating bitswap. The default value is true.

@ghost ghost assigned michaelavila Apr 22, 2019
@ghost ghost added the status/in-progress In progress label Apr 22, 2019
Copy link
Contributor

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

LGTM Pending re-review at a later point

@michaelavila michaelavila force-pushed the experiment/provider-system-no-blocks branch 2 times, most recently from 90773bf to 5543aed Compare April 30, 2019 16:44
@michaelavila michaelavila force-pushed the experiment/provider-system-no-blocks branch from 5543aed to 6785654 Compare April 30, 2019 16:46
@michaelavila michaelavila changed the title [WIP] Control provider workers with experiment flag Control provider workers with experiment flag Apr 30, 2019
@michaelavila michaelavila removed the wip label Apr 30, 2019
@hannahhoward hannahhoward merged commit d1f829b into master Apr 30, 2019
@ghost ghost removed the status/in-progress In progress label Apr 30, 2019
// send block off to be reprovided
case <-bs.process.Closing():
return bs.process.Close()
if ProvideEnabled {
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to make this a global flag? That's generally a last resort for things that should only be changed when debugging (or things that absolutely need to apply to the entire program like "force private networks").

cc @michaelavila

Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
…system-no-blocks

Control provider workers with experiment flag

This commit was moved from ipfs/go-bitswap@d1f829b
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants