fix: add missing request connection close
This commit is contained in:
parent
8d3f490c01
commit
dff3ca4589
|
@ -52,6 +52,7 @@ func Init() {
|
|||
client.SetBaseURL("http://localhost:9980/api")
|
||||
client.SetBasicAuth("", viper.GetString("renterd-api-password"))
|
||||
client.SetDisableWarn(true)
|
||||
client.SetCloseConnection(true)
|
||||
}
|
||||
|
||||
func Upload(r io.ReadSeeker, size int64, hash []byte, accountID uint) (model.Upload, error) {
|
||||
|
|
Loading…
Reference in New Issue