1
mirror of https://github.com/rclone/rclone synced 2024-12-26 18:23:45 +01:00
rclone/backend/pikpak
wiserain 31fabb3402
pikpak: correct file transfer progress for uploads by hash
Pikpak can accelerate file uploads by leveraging existing content 
in its storage (identified by a custom hash called gcid). 
Previously, file transfer statistics were incorrect for uploads 
without outbound traffic as the input stream remained unchanged.

This commit addresses the issue by:

* Removing unnecessary unwrapping/wrapping of accountings 
before/after gcid calculation, leading immediate AccountRead() on buffering.
* Correctly tracking file transfer statistics for uploads 
with no incoming/outgoing traffic by marking them as Server Side Copies.

This change ensures correct statistics tracking and improves overall user experience.
2024-07-20 21:50:08 +09:00
..
api pikpak: implement custom hash to replace wrong sha1 2024-06-20 00:57:21 +09:00
helper.go pikpak: optimize upload by pre-fetching gcid from API 2024-07-17 12:20:09 +09:00
pikpak_test.go pikpak: new backend 2023-04-04 16:33:48 +01:00
pikpak.go pikpak: correct file transfer progress for uploads by hash 2024-07-20 21:50:08 +09:00