Browse Source

go fmt

pull/1862/head
Chris Lu 4 years ago
parent
commit
540441fd38
  1. 1
      weed/command/filer_backup.go
  2. 2
      weed/replication/sink/azuresink/azure_sink.go
  3. 2
      weed/replication/sink/b2sink/b2_sink.go
  4. 2
      weed/replication/sink/filersink/filer_sink.go
  5. 2
      weed/replication/sink/gcssink/gcs_sink.go
  6. 2
      weed/storage/needle/needle_read_write.go

1
weed/command/filer_backup.go

@ -155,4 +155,3 @@ func doFilerBackup(grpcDialOption grpc.DialOption, backupOption *FilerBackupOpti
}) })
} }

2
weed/replication/sink/azuresink/azure_sink.go

@ -42,7 +42,7 @@ func (g *AzureSink) IsIncremental() bool {
} }
func (g *AzureSink) Initialize(configuration util.Configuration, prefix string) error { func (g *AzureSink) Initialize(configuration util.Configuration, prefix string) error {
g.isIncremental = configuration.GetBool(prefix+"is_incremental")
g.isIncremental = configuration.GetBool(prefix + "is_incremental")
return g.initialize( return g.initialize(
configuration.GetString(prefix+"account_name"), configuration.GetString(prefix+"account_name"),
configuration.GetString(prefix+"account_key"), configuration.GetString(prefix+"account_key"),

2
weed/replication/sink/b2sink/b2_sink.go

@ -38,7 +38,7 @@ func (g *B2Sink) IsIncremental() bool {
} }
func (g *B2Sink) Initialize(configuration util.Configuration, prefix string) error { func (g *B2Sink) Initialize(configuration util.Configuration, prefix string) error {
g.isIncremental = configuration.GetBool(prefix+"is_incremental")
g.isIncremental = configuration.GetBool(prefix + "is_incremental")
return g.initialize( return g.initialize(
configuration.GetString(prefix+"b2_account_id"), configuration.GetString(prefix+"b2_account_id"),
configuration.GetString(prefix+"b2_master_application_key"), configuration.GetString(prefix+"b2_master_application_key"),

2
weed/replication/sink/filersink/filer_sink.go

@ -50,7 +50,7 @@ func (fs *FilerSink) IsIncremental() bool {
} }
func (fs *FilerSink) Initialize(configuration util.Configuration, prefix string) error { func (fs *FilerSink) Initialize(configuration util.Configuration, prefix string) error {
fs.isIncremental = configuration.GetBool(prefix+"is_incremental")
fs.isIncremental = configuration.GetBool(prefix + "is_incremental")
return fs.DoInitialize( return fs.DoInitialize(
"", "",
configuration.GetString(prefix+"grpcAddress"), configuration.GetString(prefix+"grpcAddress"),

2
weed/replication/sink/gcssink/gcs_sink.go

@ -42,7 +42,7 @@ func (g *GcsSink) IsIncremental() bool {
} }
func (g *GcsSink) Initialize(configuration util.Configuration, prefix string) error { func (g *GcsSink) Initialize(configuration util.Configuration, prefix string) error {
g.isIncremental = configuration.GetBool(prefix+"is_incremental")
g.isIncremental = configuration.GetBool(prefix + "is_incremental")
return g.initialize( return g.initialize(
configuration.GetString(prefix+"google_application_credentials"), configuration.GetString(prefix+"google_application_credentials"),
configuration.GetString(prefix+"bucket"), configuration.GetString(prefix+"bucket"),

2
weed/storage/needle/needle_read_write.go

@ -168,7 +168,7 @@ func ReadNeedleBlob(r backend.BackendStorageFile, offset int64, size Size, versi
} }
if err != nil { if err != nil {
fileSize, _, _ := r.GetStat() fileSize, _, _ := r.GetStat()
println("n",n, "dataSize", dataSize, "offset", offset, "fileSize", fileSize)
println("n", n, "dataSize", dataSize, "offset", offset, "fileSize", fileSize)
} }
return dataSlice, err return dataSlice, err

Loading…
Cancel
Save