We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51e247a commit 30b2b24Copy full SHA for 30b2b24
src/index.ts
@@ -61,9 +61,14 @@ Chunk.hashFunction = (data: Uint8Array): Uint8Array => {
61
62
const tree = new MerkleTree(async chunk => {
63
await queue.enqueue(async () => {
64
+ try {
65
const envelope = stamper.stamp(chunk);
66
await bee.uploadChunk(envelope, chunk.build());
67
stampings++;
68
+ } catch (err) {
69
+ error({ err }, 'Failed to upload chunk');
70
+ throw err; // Re-throw to make sure the queue knows this task failed
71
+ }
72
})
73
74
0 commit comments