Browse Source

go fmt

pull/702/head
Chris Lu 7 years ago
parent
commit
d3205a0070
  1. 12
      weed/filer2/filer.go
  2. 4
      weed/server/master_grpc_server.go
  3. 2
      weed/server/master_server.go
  4. 4
      weed/wdclient/masterclient.go
  5. 9
      weed/wdclient/vid_map.go

12
weed/filer2/filer.go

@ -1,18 +1,18 @@
package filer2
import (
"context"
"fmt"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/karlseguin/ccache"
"os"
"path/filepath"
"strings"
"time"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/wdclient"
"context"
"github.com/karlseguin/ccache"
)
type Filer struct {

4
weed/server/master_grpc_server.go

@ -1,15 +1,15 @@
package weed_server
import (
"fmt"
"net"
"strings"
"github.com/chrislusf/raft"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/topology"
"google.golang.org/grpc/peer"
"fmt"
"github.com/chrislusf/raft"
)
func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error {

2
weed/server/master_server.go

@ -9,12 +9,12 @@ import (
"github.com/chrislusf/raft"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/sequence"
"github.com/chrislusf/seaweedfs/weed/topology"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/gorilla/mux"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
)
type MasterServer struct {

4
weed/wdclient/masterclient.go

@ -2,12 +2,12 @@ package wdclient
import (
"context"
"time"
"fmt"
"time"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/glog"
)
type MasterClient struct {

9
weed/wdclient/vid_map.go

@ -1,13 +1,14 @@
package wdclient
import (
"sync"
"strings"
"math/rand"
"errors"
"fmt"
"math/rand"
"strconv"
"strings"
"sync"
"github.com/chrislusf/seaweedfs/weed/glog"
"fmt"
)
type Location struct {

Loading…
Cancel
Save