Browse Source

go fmt

pull/747/head
Chris Lu 6 years ago
parent
commit
296acc4a0a
  1. 4
      weed/filer2/filechunks.go
  2. 1
      weed/filesys/dirty_page.go
  3. 12
      weed/s3api/filer_multipart.go
  4. 12
      weed/s3api/s3api_object_multipart_handlers.go
  5. 2
      weed/s3api/s3api_objects_list_handlers.go

4
weed/filer2/filechunks.go

@ -1,10 +1,10 @@
package filer2
import (
"fmt"
"hash/fnv"
"math"
"sort"
"hash/fnv"
"fmt"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
)

1
weed/filesys/dirty_page.go

@ -130,7 +130,6 @@ func (pages *ContinuousDirtyPages) saveExistingPagesToStorage(ctx context.Contex
func (pages *ContinuousDirtyPages) saveToStorage(ctx context.Context, buf []byte, offset int64) (*filer_pb.FileChunk, error) {
var fileId, host string
if err := pages.f.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error {

12
weed/s3api/filer_multipart.go

@ -2,17 +2,17 @@ package s3api
import (
"fmt"
"time"
"strings"
"strconv"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/aws"
"github.com/satori/go.uuid"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/chrislusf/seaweedfs/weed/filer2"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/filer2"
"github.com/satori/go.uuid"
)
func (s3a *S3ApiServer) createMultipartUpload(input *s3.CreateMultipartUploadInput) (output *s3.CreateMultipartUploadOutput, code ErrorCode) {

12
weed/s3api/s3api_object_multipart_handlers.go

@ -1,16 +1,16 @@
package s3api
import (
"net/http"
"github.com/gorilla/mux"
"encoding/xml"
"fmt"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/aws"
"net/url"
"strconv"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/gorilla/mux"
"io/ioutil"
"encoding/xml"
"net/http"
"net/url"
"sort"
"strconv"
"strings"
)

2
weed/s3api/s3api_objects_list_handlers.go

@ -11,10 +11,10 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/chrislusf/seaweedfs/weed/filer2"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/gorilla/mux"
"github.com/chrislusf/seaweedfs/weed/filer2"
)
const (

Loading…
Cancel
Save