Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-core
Commits
65c85152
Commit
65c85152
authored
May 14, 2020
by
Raúl Kripalani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor godoc fixes.
parent
9d35da13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
connmgr/decay.go
connmgr/decay.go
+2
-3
No files found.
connmgr/decay.go
View file @
65c85152
...
...
@@ -20,15 +20,14 @@ import (
// the new value.
//
// Such a pluggable design affords a great deal of flexibility and versatility.
// Behaviours that are straightfoward to implement include:
// Behaviours that are straightfo
r
ward to implement include:
//
// * Decay a tag by -1, or by half its current value, on every tick.
// * Every time a value is bumped, sum it to its current value.
// * Exponentially boost a score with every bump.
// * Sum the incoming score, but keep it within min, max bounds.
//
// Commonly used DecayFns and BumpFns are provided in the go-libp2p-connmgr
// module.
// Commonly used DecayFns and BumpFns are provided in this package.
type
Decayer
interface
{
io
.
Closer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment