Skip to content

fix(backup_manager): remove unused connections in the Backup and Restore methods#210

Open
AnyCPU wants to merge 1 commit intonakagami:masterfrom
AnyCPU:fix/backup_mamanger_restore_2
Open

fix(backup_manager): remove unused connections in the Backup and Restore methods#210
AnyCPU wants to merge 1 commit intonakagami:masterfrom
AnyCPU:fix/backup_mamanger_restore_2

Conversation

@AnyCPU
Copy link
Contributor

@AnyCPU AnyCPU commented Mar 10, 2026

the Backup and Restore methods call bm.connBuilder() to create a ServiceManager connection, defer-close it, and then call bm.attach() — which creates its own connection via the same connBuilder().

the first connection is never used for any operation.
this wastes a full TCP + SRP auth round-trip per call.

in general that code does nothing useful.

FIX

clean up related code.

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.

1 participant