From e9f5496ca128f5874c64dd6595ed816fb16279a8 Mon Sep 17 00:00:00 2001 From: Klaudiusz Dembler Date: Tue, 17 Mar 2020 12:46:56 +0100 Subject: [PATCH] cleanup comments --- src/Compute.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Compute.js b/src/Compute.js index 87ec5ac..a2bcfe2 100644 --- a/src/Compute.js +++ b/src/Compute.js @@ -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 }