Browse Source

go fmt

pull/2321/head
Chris Lu 3 years ago
parent
commit
7ce97b59d8
  1. 1
      weed/command/filer_sync_std.go
  2. 5
      weed/command/mount_notsupported.go
  3. 1
      weed/command/mount_std.go
  4. 1
      weed/filer/sqlite/sqlite_store.go
  5. 1
      weed/filer/sqlite/sqlite_store_unsupported.go
  6. 1
      weed/filer/tikv/tikv_store.go
  7. 1
      weed/filer/tikv/tikv_store_kv.go
  8. 2
      weed/remote_storage/traverse_bfs.go
  9. 1
      weed/server/filer_server_rocksdb.go
  10. 2
      weed/server/volume_grpc_copy.go
  11. 1
      weed/shell/command_remote_configure.go
  12. 1
      weed/stats/disk_notsupported.go
  13. 1
      weed/stats/disk_supported.go
  14. 1
      weed/stats/memory_notsupported.go
  15. 1
      weed/stats/memory_supported.go
  16. 1
      weed/storage/backend/memory_map/memory_map_other.go
  17. 1
      weed/storage/backend/memory_map/memory_map_windows.go
  18. 1
      weed/storage/backend/volume_create.go
  19. 1
      weed/storage/backend/volume_create_linux.go
  20. 1
      weed/storage/backend/volume_create_windows.go
  21. 1
      weed/storage/needle_map/compact_map_cases_test.go
  22. 1
      weed/storage/types/offset_4bytes.go
  23. 1
      weed/storage/types/offset_5bytes.go
  24. 1
      weed/util/constants_4bytes.go
  25. 1
      weed/util/constants_5bytes.go
  26. 1
      weed/util/file_util_non_posix.go
  27. 1
      weed/util/file_util_posix.go
  28. 1
      weed/util/grace/signal_handling.go
  29. 1
      weed/util/grace/signal_handling_notsupported.go

1
weed/command/filer_sync_std.go

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows // +build !windows
package command package command

5
weed/command/mount_notsupported.go

@ -1,6 +1,5 @@
// +build !linux
// +build !darwin
// +build !freebsd
//go:build !linux && !darwin && !freebsd
// +build !linux,!darwin,!freebsd
package command package command

1
weed/command/mount_std.go

@ -1,3 +1,4 @@
//go:build linux || darwin || freebsd
// +build linux darwin freebsd // +build linux darwin freebsd
package command package command

1
weed/filer/sqlite/sqlite_store.go

@ -1,3 +1,4 @@
//go:build linux || darwin || windows
// +build linux darwin windows // +build linux darwin windows
// limited GOOS due to modernc.org/libc/unistd // limited GOOS due to modernc.org/libc/unistd

1
weed/filer/sqlite/sqlite_store_unsupported.go

@ -1,3 +1,4 @@
//go:build !linux && !darwin && !windows && !s390 && !ppc64le && !mips64
// +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64 // +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64
// limited GOOS due to modernc.org/libc/unistd // limited GOOS due to modernc.org/libc/unistd

1
weed/filer/tikv/tikv_store.go

@ -1,3 +1,4 @@
//go:build tikv
// +build tikv // +build tikv
package tikv package tikv

1
weed/filer/tikv/tikv_store_kv.go

@ -1,3 +1,4 @@
//go:build tikv
// +build tikv // +build tikv
package tikv package tikv

2
weed/remote_storage/traverse_bfs.go

@ -45,7 +45,7 @@ func TraverseBfs(listDirFn ListDirectoryFunc, parentPath util.FullPath, visitFn
} }
func processOneDirectory(listDirFn ListDirectoryFunc, parentPath util.FullPath, visitFn VisitFunc, dirQueue *util.Queue, dirQueueWg *sync.WaitGroup) (error) {
func processOneDirectory(listDirFn ListDirectoryFunc, parentPath util.FullPath, visitFn VisitFunc, dirQueue *util.Queue, dirQueueWg *sync.WaitGroup) error {
return listDirFn(parentPath, func(dir string, name string, isDirectory bool, remoteEntry *filer_pb.RemoteEntry) error { return listDirFn(parentPath, func(dir string, name string, isDirectory bool, remoteEntry *filer_pb.RemoteEntry) error {
if err := visitFn(dir, name, isDirectory, remoteEntry); err != nil { if err := visitFn(dir, name, isDirectory, remoteEntry); err != nil {

1
weed/server/filer_server_rocksdb.go

@ -1,3 +1,4 @@
//go:build rocksdb
// +build rocksdb // +build rocksdb
package weed_server package weed_server

2
weed/server/volume_grpc_copy.go

@ -167,7 +167,7 @@ func (vs *VolumeServer) doCopyFile(client volume_server_pb.VolumeServerClient, i
only check the the differ of the file size only check the the differ of the file size
todo: maybe should check the received count and deleted count of the volume todo: maybe should check the received count and deleted count of the volume
*/ */
func checkCopyFiles(originFileInf *volume_server_pb.ReadVolumeFileStatusResponse, idxFileName, datFileName string) (error) {
func checkCopyFiles(originFileInf *volume_server_pb.ReadVolumeFileStatusResponse, idxFileName, datFileName string) error {
stat, err := os.Stat(idxFileName) stat, err := os.Stat(idxFileName)
if err != nil { if err != nil {
return fmt.Errorf("stat idx file %s failed: %v", idxFileName, err) return fmt.Errorf("stat idx file %s failed: %v", idxFileName, err)

1
weed/shell/command_remote_configure.go

@ -116,7 +116,6 @@ Namenode running as service 'hdfs' with FQDN 'namenode.hadoop.docker'.
`) `)
remoteConfigureCommand.StringVar(&conf.HdfsDataTransferProtection, "hdfs.dataTransferProtection", "", "[authentication|integrity|privacy] Kerberos data transfer protection") remoteConfigureCommand.StringVar(&conf.HdfsDataTransferProtection, "hdfs.dataTransferProtection", "", "[authentication|integrity|privacy] Kerberos data transfer protection")
if err = remoteConfigureCommand.Parse(args); err != nil { if err = remoteConfigureCommand.Parse(args); err != nil {
return nil return nil
} }

1
weed/stats/disk_notsupported.go

@ -1,3 +1,4 @@
//go:build openbsd || netbsd || plan9 || solaris
// +build openbsd netbsd plan9 solaris // +build openbsd netbsd plan9 solaris
package stats package stats

1
weed/stats/disk_supported.go

@ -1,3 +1,4 @@
//go:build !windows && !openbsd && !netbsd && !plan9 && !solaris
// +build !windows,!openbsd,!netbsd,!plan9,!solaris // +build !windows,!openbsd,!netbsd,!plan9,!solaris
package stats package stats

1
weed/stats/memory_notsupported.go

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux // +build !linux
package stats package stats

1
weed/stats/memory_supported.go

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package stats package stats

1
weed/storage/backend/memory_map/memory_map_other.go

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows // +build !windows
package memory_map package memory_map

1
weed/storage/backend/memory_map/memory_map_windows.go

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package memory_map package memory_map

1
weed/storage/backend/volume_create.go

@ -1,3 +1,4 @@
//go:build !linux && !windows
// +build !linux,!windows // +build !linux,!windows
package backend package backend

1
weed/storage/backend/volume_create_linux.go

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package backend package backend

1
weed/storage/backend/volume_create_windows.go

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package backend package backend

1
weed/storage/needle_map/compact_map_cases_test.go

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset // +build 5BytesOffset
package needle_map package needle_map

1
weed/storage/types/offset_4bytes.go

@ -1,3 +1,4 @@
//go:build !5BytesOffset
// +build !5BytesOffset // +build !5BytesOffset
package types package types

1
weed/storage/types/offset_5bytes.go

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset // +build 5BytesOffset
package types package types

1
weed/util/constants_4bytes.go

@ -1,3 +1,4 @@
//go:build !5BytesOffset
// +build !5BytesOffset // +build !5BytesOffset
package util package util

1
weed/util/constants_5bytes.go

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset // +build 5BytesOffset
package util package util

1
weed/util/file_util_non_posix.go

@ -1,3 +1,4 @@
//go:build linux || darwin || freebsd || netbsd || openbsd || plan9 || solaris || zos
// +build linux darwin freebsd netbsd openbsd plan9 solaris zos // +build linux darwin freebsd netbsd openbsd plan9 solaris zos
package util package util

1
weed/util/file_util_posix.go

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package util package util

1
weed/util/grace/signal_handling.go

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package grace package grace

1
weed/util/grace/signal_handling_notsupported.go

@ -1,3 +1,4 @@
//go:build plan9
// +build plan9 // +build plan9
package grace package grace

Loading…
Cancel
Save