Browse Source

go fmt

pull/1355/head
Chris Lu 5 years ago
parent
commit
45a9d852d3
  1. 2
      weed/command/mount_std.go
  2. 2
      weed/command/server.go
  3. 4
      weed/messaging/msgclient/subscriber.go
  4. 1
      weed/stats/disk_windows.go

2
weed/command/mount_std.go

@ -34,7 +34,7 @@ func runMount(cmd *Command, args []string) bool {
return false return false
} }
if len(args)>0 {
if len(args) > 0 {
return false return false
} }

2
weed/command/server.go

@ -208,7 +208,7 @@ func runServer(cmd *Command, args []string) bool {
// start volume server // start volume server
{ {
go serverOptions.v.startVolumeServer(*volumeDataFolders, *volumeMaxDataVolumeCounts, *serverWhiteListOption, *volumeMinFreeSpacePercent )
go serverOptions.v.startVolumeServer(*volumeDataFolders, *volumeMaxDataVolumeCounts, *serverWhiteListOption, *volumeMinFreeSpacePercent)
} }

4
weed/messaging/msgclient/subscriber.go

@ -3,8 +3,8 @@ package msgclient
import ( import (
"context" "context"
"io" "io"
"time"
"sync" "sync"
"time"
"github.com/chrislusf/seaweedfs/weed/messaging/broker" "github.com/chrislusf/seaweedfs/weed/messaging/broker"
"github.com/chrislusf/seaweedfs/weed/pb/messaging_pb" "github.com/chrislusf/seaweedfs/weed/pb/messaging_pb"
@ -26,7 +26,7 @@ func (mc *MessagingClient) NewSubscriber(subscriberId, namespace, topic string,
subscriberCancels := make([]context.CancelFunc, topicConfiguration.PartitionCount) subscriberCancels := make([]context.CancelFunc, topicConfiguration.PartitionCount)
for i := 0; i < int(topicConfiguration.PartitionCount); i++ { for i := 0; i < int(topicConfiguration.PartitionCount); i++ {
if partitionId>=0 && i != partitionId {
if partitionId >= 0 && i != partitionId {
continue continue
} }
tp := broker.TopicPartition{ tp := broker.TopicPartition{

1
weed/stats/disk_windows.go

@ -6,6 +6,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
) )
var ( var (
kernel32 = windows.NewLazySystemDLL("Kernel32.dll") kernel32 = windows.NewLazySystemDLL("Kernel32.dll")
getDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW") getDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW")

Loading…
Cancel
Save