Closed puellanivis closed 4 years ago
When changing the example code to use client instead of shadowing the sftp package with the client variable, it was missed that we need to call client.Close() instead of sftp.Close()
client
sftp
client.Close()
sftp.Close()
Would prefer to merge this tomorrow, so that we can release the next version with the optional allocator.
Defering to https://github.com/pkg/sftp/pull/356 from other author who contributed it before me.
When changing the example code to use
client
instead of shadowing thesftp
package with the client variable, it was missed that we need to callclient.Close()
instead ofsftp.Close()