From 394d6ffeeb98e9b3a40b2c31c295e6db8cbf5725 Mon Sep 17 00:00:00 2001 From: pared Date: Wed, 7 Aug 2019 15:49:56 +0200 Subject: [PATCH] remote: ssh: connection: remove open_max_sftp_channels --- dvc/remote/ssh/connection.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dvc/remote/ssh/connection.py b/dvc/remote/ssh/connection.py index 8362857b8..9d64ee5b4 100644 --- a/dvc/remote/ssh/connection.py +++ b/dvc/remote/ssh/connection.py @@ -289,15 +289,3 @@ class SSHConnection: def cp(self, src, dest): self.makedirs(posixpath.dirname(dest)) self.execute("cp {} {}".format(src, dest)) - - def open_max_sftp_channels(self): - # If there are more than 1 it means we've already opened max amount - if len(self._sftp_channels) <= 1: - while True: - try: - self._sftp_channels.append(self._ssh.open_sftp()) - except paramiko.ssh_exception.ChannelException: - if not self._sftp_channels: - raise - break - return self._sftp_channels