-
Notifications
You must be signed in to change notification settings - Fork 27
peers: move to maxAge instead of timeslotting #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@robertkowalski dht out with the maxAge option, we should bump the semver to ^7.9.0 |
README.md
Outdated
--dht_maxValues DHT max values [number] | ||
--bn, --bootstrap Bootstrap nodes [string] [required] | ||
--aph, --api_port HTTP api port [number] [required] | ||
--dht_peer_maxAge, --dts Max age for peers in DHT [number] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertkowalski we should probably use --dpma
or dpa
as alias
561acde
to
d39e6d6
Compare
@mafintosh bumped! @prdn changed! |
package.json
Outdated
"dependencies": { | ||
"async": "^2.6.0", | ||
"bittorrent-dht": "^7.8.2", | ||
"bittorrent-dht": "7.9.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should still have the ^
here
lib/Grape.js
Outdated
const kcnt = this.cbq0.cnt(ih) | ||
if (kcnt > 1) return | ||
|
||
this._mem.remove(ih) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mafintosh hmm
dht_nodeLiveness: 5 * 60 * 1000, // 5 min | ||
api_port: null, | ||
timeslot: 10000 | ||
dht_peer_maxAge: 10000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertkowalski I think this should be 60000 as default. 10000 is a bit too low.
rebased and incorporated feedback from #45
todo: