-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: periodic version check and json config (#10438)
Co-authored-by: Lucas Molas <[email protected]> Co-authored-by: Marcin Rataj <[email protected]>
- Loading branch information
1 parent
ddfd776
commit 225dbe6
Showing
10 changed files
with
315 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package config | ||
|
||
const DefaultSwarmCheckPercentThreshold = 5 | ||
|
||
// Version allows controling things like custom user agent and update checks. | ||
type Version struct { | ||
// Optional suffix to the AgentVersion presented by `ipfs id` and exposed | ||
// via libp2p identify protocol. | ||
AgentSuffix *OptionalString `json:",omitempty"` | ||
|
||
// Detect when to warn about new version when observed via libp2p identify | ||
SwarmCheckEnabled Flag `json:",omitempty"` | ||
SwarmCheckPercentThreshold *OptionalInteger `json:",omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.