Browse Source

go fmt

pull/719/head
Chris Lu 7 years ago
parent
commit
10bb76fe6b
  1. 2
      weed/storage/needle_map_metric.go
  2. 2
      weed/storage/needle_parse_multipart.go

2
weed/storage/needle_map_metric.go

@ -109,7 +109,7 @@ func reverseWalkIndexFile(r *os.File, initFn func(entryCount int64), fn func(key
return e return e
} }
for i := int(nextBatchSize) - 1; i >= 0; i-- { for i := int(nextBatchSize) - 1; i >= 0; i-- {
key, offset, size := IdxFileEntry(bytes[i*NeedleEntrySize:i*NeedleEntrySize+NeedleEntrySize])
key, offset, size := IdxFileEntry(bytes[i*NeedleEntrySize : i*NeedleEntrySize+NeedleEntrySize])
if e = fn(key, offset, size); e != nil { if e = fn(key, offset, size); e != nil {
return e return e
} }

2
weed/storage/needle_parse_multipart.go

@ -7,8 +7,8 @@ import (
"mime" "mime"
"net/http" "net/http"
"path" "path"
"strings"
"strconv" "strconv"
"strings"
) )
func parseMultipart(r *http.Request) ( func parseMultipart(r *http.Request) (

Loading…
Cancel
Save