Skip to content

cli/connhelper: getConnectionHelper: move ssh-option funcs out of closure - #5345

Merged
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:connhelper_cleanups
Aug 13, 2024
Merged

cli/connhelper: getConnectionHelper: move ssh-option funcs out of closure#5345
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:connhelper_cleanups

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

The addSSHTimeout and disablePseudoTerminalAllocation were added in commits a5ebe22 and f3c2c26, and called inside the Dialer function, which means they're called every time the Dialer is called. Given that the sshFlags slice is not mutated by the Dialer, we can call these functions once.

- A picture of a cute animal (not mandatory but encouraged)

…sure
The addSSHTimeout and disablePseudoTerminalAllocation were added in commits
a5ebe22 and f3c2c26,
and called inside the Dialer function, which means they're called every
time the Dialer is called. Given that the sshFlags slice is not mutated
by the Dialer, we can call these functions once.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztahthaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Aug 12, 2024
@thaJeztahthaJeztah added this to the 28.0.0 milestone Aug 12, 2024
@codecov-commenter

codecov-commenter commented Aug 12, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 61.46%. Comparing base (1a7b7dd) to head (0fd3fb0).
Report is 43 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #5345 +/- ##
=======================================
Coverage 61.46% 61.46% =======================================
Files 299 299 Lines 20863 20863 =======================================
Hits 12823 12823 Misses 7125 7125 Partials 915 915 

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactorPR's that refactor, or clean-up codeprocess/cherry-pickedstatus/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thaJeztah@codecov-commenter@laurazard@vvoland