ssbc / ssb-first-aid-kit

A user-friendly app for diagnosing and fixing problems with your Scuttlebutt installation
GNU Affero General Public License v3.0
15 stars 3 forks source link

Todo november #3

Closed Powersource closed 4 years ago

Powersource commented 4 years ago

discussed with mix what things make sense to do for this sprint and got this

also free code

// example code for ebt polling

var seq = 0
var replication = {}

server.ebt.peerStatus(server.id, (err, data) => {
  if (err) return console.error(err)

  seq = data.seq // this is my actual sequence

  for (var peer in data.peers) {
    replication[peer] = data.peers[peer]
  } // update what the peer says my sequence is at
})
Powersource commented 4 years ago

Did a basic pass on ebt now so you can get the info out. Gonna make it easier to parse (with eyes) in the future.

mixmix commented 4 years ago

Works as intended :heart:

Great work :pineapple: :tropical_fish: