-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from Shawn-Huang-Tron/main
feat: upgrade libp2p to 0.23.4
- Loading branch information
Showing
18 changed files
with
1,023 additions
and
133 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
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,17 @@ | ||
package config | ||
|
||
// DNS specifies DNS resolution rules using custom resolvers | ||
type DNS struct { | ||
// Resolvers is a map of FQDNs to URLs for custom DNS resolution. | ||
// URLs starting with `https://` indicate DoH endpoints. | ||
// Support for other resolver types can be added in the future. | ||
// https://en.wikipedia.org/wiki/Fully_qualified_domain_name | ||
// https://en.wikipedia.org/wiki/DNS_over_HTTPS | ||
// | ||
// Example: | ||
// - Custom resolver for ENS: `eth.` → `https://dns.eth.limo/dns-query` | ||
// - Override the default OS resolver: `.` → `https://doh.applied-privacy.net/query` | ||
Resolvers map[string]string | ||
// MaxCacheTTL is the maximum duration DNS entries are valid in the cache. | ||
MaxCacheTTL *OptionalDuration `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
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,16 @@ | ||
package config | ||
|
||
type Internal struct { | ||
// All marked as omitempty since we are expecting to make changes to all subcomponents of Internal | ||
Bitswap *InternalBitswap `json:",omitempty"` | ||
UnixFSShardingSizeThreshold *OptionalString `json:",omitempty"` | ||
Libp2pForceReachability *OptionalString `json:",omitempty"` | ||
} | ||
|
||
type InternalBitswap struct { | ||
TaskWorkerCount OptionalInteger | ||
EngineBlockstoreWorkerCount OptionalInteger | ||
EngineTaskWorkerCount OptionalInteger | ||
MaxOutstandingBytesPerPeer OptionalInteger | ||
ProviderSearchDelay OptionalDuration | ||
} |
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
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
package config | ||
|
||
import "time" | ||
|
||
const DefaultReproviderInterval = time.Hour * 22 // https://github.com/ipfs/kubo/pull/9326 | ||
const DefaultReproviderStrategy = "all" | ||
|
||
type Reprovider struct { | ||
Interval string // Time period to reprovide locally stored objects to the network | ||
Strategy string // Which keys to announce | ||
Interval *OptionalDuration `json:",omitempty"` // Time period to reprovide locally stored objects to the network | ||
Strategy *OptionalString `json:",omitempty"` // Which keys to announce | ||
} |
Oops, something went wrong.