Skip to content

Commit 6716d26

Browse files
committed
Add comment for scoreCache
1 parent a964fa9 commit 6716d26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ts/score/peer-score.ts

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export class PeerScore {
3030
* IP colocation tracking; maps IP => set of peers.
3131
*/
3232
peerIPs: Map<string, Set<string>>
33+
/**
34+
* Cache score up to decayInterval if topic stats are unchanged.
35+
*/
3336
scoreCache: Map<string, number>
3437
/**
3538
* Flag to mark a peer score cache valid or not.

0 commit comments

Comments
 (0)