Skip to content

Commit

Permalink
Use tunnel ping instead of gossip ping, more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
arj03 committed Feb 21, 2020
1 parent 03c8c9d commit ca8655a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/bundle-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion net.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports.init = function(dir, overwriteConfig) {
console.log("connected to:", rpc.id)

function ping() {
rpc.gossip.ping(function (err, _ts) {
rpc.tunnel.ping(function (err, _ts) {
if (err) return console.error(err)
clearTimeout(timer)
timer = setTimeout(ping, 10e3)
Expand Down
3 changes: 0 additions & 3 deletions ssb-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ exports.manifest = {
partialReplication: {
partialReplication: 'source',
partialReplicationReverse: 'source',
},
gossip: {
ping: 'duplex'
}
}

Expand Down

0 comments on commit ca8655a

Please sign in to comment.