*update hash
This commit is contained in:
parent
ea92a2541d
commit
9bcf4a14b6
|
@ -60,6 +60,13 @@ export class IPFSClient extends Client {
|
||||||
[Symbol.asyncIterator]() {
|
[Symbol.asyncIterator]() {
|
||||||
return {
|
return {
|
||||||
async next(): Promise<IteratorResult<Uint8Array>> {
|
async next(): Promise<IteratorResult<Uint8Array>> {
|
||||||
|
if (done) {
|
||||||
|
return {
|
||||||
|
value: undefined,
|
||||||
|
done,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const chunk = await pipe.promise;
|
const chunk = await pipe.promise;
|
||||||
update("next");
|
update("next");
|
||||||
|
|
||||||
|
@ -80,5 +87,5 @@ export class IPFSClient extends Client {
|
||||||
|
|
||||||
export const createClient = factory<IPFSClient>(
|
export const createClient = factory<IPFSClient>(
|
||||||
IPFSClient,
|
IPFSClient,
|
||||||
"AABQIM9nyK61LFfr5jUAivD6JYRvQsC5XSNE71XXHfn-sg"
|
"AAD_sKxIPbN-n7sNpYycq0M6wyix_UMIhqFiUPILfKiuqA"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue