mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
306062b4e7
commit
de86945aeb
|
@ -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)
|
||||
|
|
|
@ -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", "*")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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…
Reference in a new issue