Skip to content

Commit 327a73d

Browse files
committed
Waited for torrent to be created before storeing in gunjs
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
1 parent a5527a6 commit 327a73d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/host.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,16 @@ export class FileHost implements IFileHost {
319319
webTorrent: capabilities.webTorrent?.available || false
320320
});
321321

322-
// Step 3: Register capabilities in Gun.js registry (AFTER WebTorrent is ready)
323-
if (this.gunRegistry) {
324-
try {
325-
console.log(`🔄 Registering with Gun.js registry...`);
326-
await this.gunRegistry.register(capabilities);
327-
console.log(`✅ Registered capabilities in Gun.js registry with storeId: ${this.storeId}`);
328-
} catch (error) {
329-
console.warn(`⚠️ Failed to register in Gun.js registry:`, error);
330-
}
331-
}
322+
// // Step 3: Register capabilities in Gun.js registry (AFTER WebTorrent is ready)
323+
// if (this.gunRegistry) {
324+
// try {
325+
// console.log(`🔄 Registering with Gun.js registry...`);
326+
// await this.gunRegistry.register(capabilities);
327+
// console.log(`✅ Registered capabilities in Gun.js registry with storeId: ${this.storeId}`);
328+
// } catch (error) {
329+
// console.warn(`⚠️ Failed to register in Gun.js registry:`, error);
330+
// }
331+
// }
332332

333333
// Store capabilities for use in other methods
334334
this.capabilities = capabilities;

0 commit comments

Comments
 (0)