Skip to content
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

peers: handle maxAge option #186

Merged
merged 2 commits into from
Jan 10, 2018
Merged

Conversation

robertkowalski
Copy link
Contributor

handle option maxAge to remove stale peers from peercache

README.md Outdated
@@ -82,6 +82,8 @@ If `opts` is specified, then the default options (shown below) will be overridde
concurrency: 16, // k-rpc option to specify maximum concurrent UDP requests allowed (Number, 16 by default)
hash: Function, // custom hash function to use (Function, SHA1 by default),
krpc: krpc() // optional k-rpc instance
timeBucketOutdated: 900000 // check buckets every 15min
maxAge: Infinity // optional setting for announced peers to time out
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you some missing , above? :)

handle option maxAge to remove stale peers from peercache
@mafintosh
Copy link
Contributor

It is failing because of standard, I'll fix that.

@robertkowalski
Copy link
Contributor Author

robertkowalski commented Jan 10, 2018 via email

@robertkowalski robertkowalski deleted the maxAge branch January 10, 2018 17:37
@mafintosh
Copy link
Contributor

7.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants