cleanup comments

This commit is contained in:
Klaudiusz Dembler 2020-03-17 12:46:56 +01:00
parent de366ba87d
commit e9f5496ca1
No known key found for this signature in database
GPG Key ID: 14B9FB649EE34C35
1 changed files with 2 additions and 4 deletions

View File

@ -73,11 +73,12 @@ export default function Compute({ ocean, web3 }) {
}
}
// order and start the compute service
// order and start the compute service with an algorithm published as an asset
async function startWithPublishedAlgo() {
return startCompute(ddoAlgorithmId)
}
// order and start the compute service with a passed raw algorithm
async function startWithRawAlgo() {
return startCompute(undefined, rawAlgoMeta)
}
@ -85,7 +86,6 @@ export default function Compute({ ocean, web3 }) {
async function getStatus() {
try {
const accounts = await ocean.accounts.list()
// start a compute job
const status = await ocean.compute.status(accounts[0], agreementId, jobId)
setJobStatus(JSON.stringify(status, null, '\t'))
@ -95,8 +95,6 @@ export default function Compute({ ocean, web3 }) {
}
}
// get results
if (!web3) {
return null
}