Skip to content

Conversation

@thaJeztah
Copy link
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>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Aug 12, 2024
@thaJeztah thaJeztah added this to the 28.0.0 milestone Aug 12, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2024

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           

@thaJeztah thaJeztah requested a review from laurazard August 12, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants