-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update autonat and upnp-nat services to match fetch etc (#1729)
Refactors exports for autonat and upnp-nat to be consistent with other services - fetch, ping, identify, etc. --------- Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
- Loading branch information
1 parent
947639f
commit 2c3b64a
Showing
6 changed files
with
78 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
/** | ||
* The prefix to use in the protocol | ||
*/ | ||
export const PROTOCOL_PREFIX = 'libp2p' | ||
|
||
export const PROTOCOL = '/libp2p/autonat/1.0.0' | ||
export const PROTOCOL_VERSION = '1.0.0' | ||
/** | ||
* The name to use in the protocol | ||
*/ | ||
export const PROTOCOL_NAME = 'autonat' | ||
|
||
/** | ||
* The version to use in the protocol | ||
*/ | ||
export const PROTOCOL_VERSION = '1.0.0' | ||
export const TIMEOUT = 30000 | ||
export const STARTUP_DELAY = 5000 | ||
export const REFRESH_INTERVAL = 60000 | ||
export const MAX_INBOUND_STREAMS = 1 | ||
export const MAX_OUTBOUND_STREAMS = 1 |
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