Skip to content

Commit

Permalink
improve destroy swarm logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabreznik committed May 18, 2024
1 parent 3e9b585 commit e8ed93f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/node_modules/_datdot-service-helpers/done-task-cleanup.js

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

1 change: 1 addition & 0 deletions src/roles/hoster.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ async function handle_hosterReplacement (args) {
async function send_data_to_attester (opts) {
return new Promise (async (resolve, reject) => {
const { account, hyper, hosterkey, attesterkey, feedkey, ranges, id, tid, log } = opts
const pubkey = account.noisePublicKey.toString('hex')
const topic = derive_topic({ senderKey: hosterkey, feedkey, receiverKey: attesterkey, id, log })
const { feed } = await hyper.new_task({ topic, log })
log({ type: 'hoster', data: { text: `New task added (active hoster)` } })
Expand Down

0 comments on commit e8ed93f

Please sign in to comment.