1
0
mirror of https://github.com/oceanprotocol/react-tutorial synced 2024-11-22 09:47:01 +01:00

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

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