mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-22 17:06:40 +00:00
fix(torrent): harden metadata reuse and live peer telemetry
- reuse validated tracker-bearing metainfo without restoring direct web seeds - preserve Torrent file selection while making long paths scrollable and copyable - add lifecycle-fenced peer and seeder summaries to Properties telemetry - validate cache tracker metadata and cover malformed, stale, and path-copy cases
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export type ClipboardWriter = (text: string) => Promise<void>;
|
||||
|
||||
/** Copy the exact Torrent-relative path without normalizing or truncating it. */
|
||||
export const copyTorrentFilePath = async (
|
||||
path: string,
|
||||
writeText: ClipboardWriter,
|
||||
): Promise<void> => {
|
||||
await writeText(path);
|
||||
};
|
||||
Reference in New Issue
Block a user