Unverified Commit bd6ab1fd authored by Aral Balkan's avatar Aral Balkan
Browse files

Rename cb() to next() to better reflect intent

parent e7218c7f
......@@ -96,10 +96,10 @@ function generateKeys() {
valueEncoding: 'json',
secretKey: hypercoreWriteKey,
storeSecretKey: false,
onwrite: (index, data, peer, cb) => {
onwrite: (index, data, peer, next) => {
console.log(`Feed: [onWrite] index = ${index}, peer = ${peer}, data:`)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment