Thread-safe fixes:

1. avoid sharing []byte
2. switch to use ReadAt()
This commit is contained in:
Chris Lu
2014-03-19 04:38:10 -07:00
parent e5e6eeda83
commit 3dbebfd1e1
2 changed files with 24 additions and 30 deletions

View File

@@ -18,6 +18,6 @@ func Delete(url string) error {
glog.V(0).Infoln("failing to delete", url)
return err
}
_, err = http.DefaultClient.Do(req)
_, err = client.Do(req)
return err
}