(n int)
| 150 | } |
| 151 | |
| 152 | func (st *SSHTransfer) spawnConnection(n int) (*PktlineConnection, string, error) { |
| 153 | conn, _, controlPath, err := startConnection(n, st.osEnv, st.gitEnv, st.meta, st.operation, st.controlPath) |
| 154 | if err != nil { |
| 155 | tracerx.Printf("failed to spawn pure SSH connection (#%d): %s", n, err) |
| 156 | return nil, "", err |
| 157 | } |
| 158 | return conn, controlPath, err |
| 159 | } |
| 160 | |
| 161 | func (st *SSHTransfer) setConnectionCount(n int) error { |
| 162 | count := len(st.conn) |
no test coverage detected