diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-03-19 04:38:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-03-19 04:41:16 -0700 |
| commit | 3dbebfd1e1f11f7be84fa178a63032367bf122dd (patch) | |
| tree | 1661a61879e9f6b0a7955cd89cd457cccd174f38 /go/operation/delete_content.go | |
| parent | e5e6eeda83c34f4a6275e33129b55445715d3f69 (diff) | |
| download | seaweedfs-3dbebfd1e1f11f7be84fa178a63032367bf122dd.tar.xz seaweedfs-3dbebfd1e1f11f7be84fa178a63032367bf122dd.zip | |
Thread-safe fixes:
1. avoid sharing []byte
2. switch to use ReadAt()
Diffstat (limited to 'go/operation/delete_content.go')
| -rw-r--r-- | go/operation/delete_content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/operation/delete_content.go b/go/operation/delete_content.go index 89f7fd695..1c7b1f9a8 100644 --- a/go/operation/delete_content.go +++ b/go/operation/delete_content.go @@ -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 } |
