Made a couple changes:
- Deleted files are now tracked under a
deletedstatus instead of just being set tofailed. I’m still deciding on what I should do to purge these ‘tombstone records’.. Perhaps purge after some time? We’ll see - The worker now properly tracks bytes sent over the wire for downloads. Previously, we’d essentially directly pipe the byte stream from R2 to the client, and record the file size as bytes sent over the wire, even though that may not be true. I’ve wrapped that
ReadableStreamwith aTransformStream<Uint8Array, Uint8Array>that implementstransform(chunk, controller). Essentially, it increments a counter for each byte (length) written over the stream - Did some dashboard revamping, specifically with how the stats are displayed
Log in to leave a comment
