-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor: Virtual Drive Initialization Improvements #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Virtual Drive Initialization Improvements #130
Conversation
… and disconnecting
src/addon-wrapper.ts
Outdated
| } | ||
|
|
||
| connectSyncRoot({ callbacks }: { callbacks: Callbacks }) { | ||
| connectSyncRoot({ callbacks }: { callbacks: Callbacks; syncRootPath: string }) { |
There was a problem hiding this comment.
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
src/virtual-drive.ts
Outdated
| } | ||
|
|
||
| return addon.connectSyncRoot({ callbacks: this.callbacks }); | ||
| console.log("Connecting to sync root: ", this.syncRootPath); |
There was a problem hiding this comment.
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?
src/virtual-drive.ts
Outdated
|
|
||
| const connectionKey = this.addon.connectSyncRoot({ callbacks: this.callbacks }); | ||
|
|
||
| console.log("Connection key: ", connectionKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this console.log
src/virtual-drive.unit.test.ts
Outdated
| const drive = new VirtualDrive(syncRootPath, logPath); | ||
| const providerId = v4(); | ||
|
|
||
| const drive = new VirtualDrive(syncRootPath, logPath, providerId); |
There was a problem hiding this comment.
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
…and update constructor parameter order
Description:
This PR enhances the configuration and initialization process of the Virtual Drive, ensuring better stability and synchronization handling.
🔹 Implemented Changes: