diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-04-16 00:10:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-04-16 00:10:21 -0700 |
| commit | 915b16f97a38affeaec6ced9860e1d30a903c047 (patch) | |
| tree | ff22485887c052e26f7d380435211ea17789c7af /go/storage/needle.go | |
| parent | e4da140d0a565bda12ac4edc6786765e65343494 (diff) | |
| download | seaweedfs-915b16f97a38affeaec6ced9860e1d30a903c047.tar.xz seaweedfs-915b16f97a38affeaec6ced9860e1d30a903c047.zip | |
refactoring, same logic, but the store replication logic is moved to a
stand-alone file, for later easier improvements
Diffstat (limited to 'go/storage/needle.go')
| -rw-r--r-- | go/storage/needle.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/storage/needle.go b/go/storage/needle.go index 755b3eafd..256a7c26a 100644 --- a/go/storage/needle.go +++ b/go/storage/needle.go @@ -36,7 +36,7 @@ type Needle struct { Padding []byte `comment:"Aligned to 8 bytes"` } -func NewNeedle(r *http.Request) (n *Needle, fname string, e error) { +func NewNeedle(r *http.Request) (n *Needle, e error) { n = new(Needle) form, fe := r.MultipartReader() @@ -51,7 +51,7 @@ func NewNeedle(r *http.Request) (n *Needle, fname string, e error) { e = fe return } - fname = part.FileName() + fname := part.FileName() if fname != "" { fname = path.Base(part.FileName()) } else { |
