Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 179a7f9

Browse files
committed
rename gossip.purge config to gossip.prune (better description of what happens)
1 parent 9d1cafb commit 179a7f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sbot/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ exports.init = function (ssb, config) {
126126
pull(
127127
ssb.messagesByType({ type: 'pub', live: true, keys: false }),
128128
pull.drain(function (value) {
129-
if (value.sync && config.gossip && config.gossip.purge) {
130-
// clean up pubs announced by peers more than 2 hops away if `--gossip.purge=true`
129+
if (value.sync && config.gossip && config.gossip.prune) {
130+
// clean up pubs announced by peers more than 2 hops away if `--gossip.prune=true`
131131
ssb.gossip.peers().slice().forEach(peer => {
132132
if (!discovered.has(peer.key)) {
133133
ssb.gossip.remove(peer, 'pub')

0 commit comments

Comments
 (0)