Skip to content

Commit

Permalink
chore: remove client code and move server into src
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Jan 4, 2021
1 parent 264ce2a commit 01ec7bc
Show file tree
Hide file tree
Showing 26 changed files with 187 additions and 993 deletions.
2 changes: 1 addition & 1 deletion .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const after = async () => {
}

module.exports = {
bundlesize: { maxSize: '80kB' },
bundlesize: { maxSize: '250kB' },
hooks: {
pre: before,
post: after
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ ENV DEBUG libp2p*

# Available overrides (defaults shown):
# Server logging can be enabled via the DEBUG environment variable
CMD [ "/usr/local/bin/dumb-init", "node", "src/server/bin.js"]
CMD [ "/usr/local/bin/dumb-init", "node", "src/bin.js"]
139 changes: 0 additions & 139 deletions LIBP2P.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"bin": {
"libp2p-rendezvous-server": "src/server/bin.js"
"libp2p-rendezvous-server": "src/bin.js"
},
"files": [
"dist",
Expand Down
File renamed without changes.
11 changes: 10 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
'use strict'

exports.MAX_NS_LENGTH = 255
exports.MAX_DISCOVER_LIMIT = 1000
exports.MAX_PEER_REGISTRATIONS = 1000
exports.MIN_TTL = 7.2e6
exports.MAX_TTL = 2.592e+8
exports.PROTOCOL_MULTICODEC = '/rendezvous/1.0.0'
exports.MAX_DISCOVER_LIMIT = 50
exports.GC_BOOT_DELAY = 10e6
exports.GC_INTERVAL = 7.2e6
exports.GC_MIN_INTERVAL = 3e6
exports.GC_MIN_REGISTRATIONS = 1000
exports.GC_MAX_REGISTRATIONS = 10e6
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/errors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

exports.codes = {
INVALID_NAMESPACE: 'ERR_INVALID_NAMESPACE',
NO_CONNECTED_RENDEZVOUS_SERVERS: 'ERR_NO_CONNECTED_RENDEZVOUS_SERVERS'
INVALID_COOKIE: 'ERR_INVALID_COOKIE'
}
Loading

0 comments on commit 01ec7bc

Please sign in to comment.