Browse Source

go fmt

pull/729/head
Chris Lu 6 years ago
parent
commit
7ad5a90127
  1. 4
      weed/command/filer_export.go
  2. 4
      weed/s3api/chunked_reader_v4.go
  3. 11
      weed/s3api/filer_util.go

4
weed/command/filer_export.go

@ -1,10 +1,10 @@
package command
import (
"github.com/chrislusf/seaweedfs/weed/server"
"github.com/spf13/viper"
"github.com/chrislusf/seaweedfs/weed/filer2"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/server"
"github.com/spf13/viper"
)
func init() {

4
weed/s3api/chunked_reader_v4.go

@ -22,9 +22,9 @@ import (
"bufio"
"bytes"
"errors"
"github.com/dustin/go-humanize"
"io"
"net/http"
"github.com/dustin/go-humanize"
)
// Streaming AWS Signature Version '4' constants.
@ -43,7 +43,7 @@ var errMalformedEncoding = errors.New("malformed chunked encoding")
// newSignV4ChunkedReader returns a new s3ChunkedReader that translates the data read from r
// out of HTTP "chunked" format before returning it.
// The s3ChunkedReader returns io.EOF when the final 0-length chunk is read.
func newSignV4ChunkedReader(req *http.Request) (io.ReadCloser) {
func newSignV4ChunkedReader(req *http.Request) io.ReadCloser {
return &s3ChunkedReader{
reader: bufio.NewReader(req.Body),
state: readChunkHeader,

11
weed/s3api/filer_util.go

@ -1,12 +1,13 @@
package s3api
import (
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"time"
"os"
"fmt"
"github.com/chrislusf/glog"
"context"
"fmt"
"os"
"time"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
)
func (s3a *S3ApiServer) mkdir(parentDirectoryPath string, dirName string) error {

Loading…
Cancel
Save