Skip to content

Conversation

@ArceDanielShok
Copy link
Contributor

Description:
This PR enhances the configuration and initialization process of the Virtual Drive, ensuring better stability and synchronization handling.

🔹 Implemented Changes:

  • Improved the Virtual Drive initialization to ensure proper mounting without conflicts.
  • Made minor code structure adjustments for better maintainability.

}

connectSyncRoot({ callbacks }: { callbacks: Callbacks }) {
connectSyncRoot({ callbacks }: { callbacks: Callbacks; syncRootPath: string }) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le has añadido el parametro pero no se usa

}

return addon.connectSyncRoot({ callbacks: this.callbacks });
console.log("Connecting to sync root: ", this.syncRootPath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these console.logs important?


const connectionKey = this.addon.connectSyncRoot({ callbacks: this.callbacks });

console.log("Connection key: ", connectionKey);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this console.log

const drive = new VirtualDrive(syncRootPath, logPath);
const providerId = v4();

const drive = new VirtualDrive(syncRootPath, logPath, providerId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, you have changed the order of params.
We should move the drive and all things from now to start using object props to remove this problems:
internxt/drive-desktop#545

@ArceDanielShok ArceDanielShok merged commit 2ff474e into feat/2-5-0-release Feb 13, 2025
1 check passed
@ArceDanielShok ArceDanielShok deleted the chore/improve-sync-engine-and-virtual-drive branch February 13, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants