Browse Source

go fmt

pull/1596/head
Chris Lu 4 years ago
parent
commit
de86945aeb
  1. 2
      weed/command/filer_copy.go
  2. 2
      weed/server/filer_server_handlers.go
  3. 2
      weed/server/volume_grpc_copy.go
  4. 2
      weed/storage/volume_read_write.go

2
weed/command/filer_copy.go

@ -405,7 +405,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
Replication: *worker.options.replication,
Collection: *worker.options.collection,
TtlSec: worker.options.ttlSec,
Path: task.destinationUrlPath+fileName,
Path: task.destinationUrlPath + fileName,
}
assignResult, assignError = client.AssignVolume(context.Background(), request)

2
weed/server/filer_server_handlers.go

@ -73,4 +73,4 @@ func OptionsHandler(w http.ResponseWriter, r *http.Request, isReadOnly bool) {
w.Header().Add("Access-Control-Allow-Methods", "PUT, POST, GET, DELETE, OPTIONS")
}
w.Header().Add("Access-Control-Allow-Headers", "*")
}
}

2
weed/server/volume_grpc_copy.go

@ -76,7 +76,7 @@ func (vs *VolumeServer) VolumeCopy(ctx context.Context, req *volume_server_pb.Vo
return err
}
os.Remove(volumeFileName+".note")
os.Remove(volumeFileName + ".note")
return nil
})

2
weed/storage/volume_read_write.go

@ -61,7 +61,7 @@ func (v *Volume) Destroy() (err error) {
}
func removeVolumeFiles(filename string) {
os.Remove(filename+ ".dat")
os.Remove(filename + ".dat")
os.Remove(filename + ".idx")
os.Remove(filename + ".vif")
os.Remove(filename + ".sdx")

Loading…
Cancel
Save