crustio / crust-demo

Basic code examples based on Crust
GNU General Public License v3.0
8 stars 8 forks source link

is this demo have goland version? #12

Open hunfwj opened 1 year ago

hunfwj commented 1 year ago

I want to use goland to write service.

ljuanto commented 2 weeks ago

if (body) { const rid = JSON.parse(body)['requestId']; console.log(body, rid); // 5. Query pinning status through pinning service while (true) { const {body: pinningStat} = await got( ipfsPinningService + /pins/${rid}, { headers: { authorization: 'Bearer ' + authHeader } } ); console.log(pinningStat); // After success, you can query the cid on Crust

    await timeout(1000);
}

} else { console.log(body); throw new Error('Crust pin failed, please try again.'); }