chore: execute goimports to format the code (#7983)
* chore: execute goimports to format the code Signed-off-by: promalert <promalert@outlook.com> * goimports -w . --------- Signed-off-by: promalert <promalert@outlook.com> Co-authored-by: Chris Lu <chris.lu@gmail.com>
This commit is contained in:
@@ -428,10 +428,10 @@ func (vs *VolumeServer) CopyFile(req *volume_server_pb.CopyFileRequest, stream v
|
||||
|
||||
}
|
||||
|
||||
// If no data has been sent in the loop (e.g. for an empty file, or when stopOffset is 0),
|
||||
// we still need to send the ModifiedTsNs so the client knows the source file exists.
|
||||
// fileModTsNs is set to 0 after the first send, so if it's still non-zero,
|
||||
// we haven't sent anything yet.
|
||||
// If no data has been sent in the loop (e.g. for an empty file, or when stopOffset is 0),
|
||||
// we still need to send the ModifiedTsNs so the client knows the source file exists.
|
||||
// fileModTsNs is set to 0 after the first send, so if it's still non-zero,
|
||||
// we haven't sent anything yet.
|
||||
if fileModTsNs != 0 {
|
||||
err = stream.Send(&volume_server_pb.CopyFileResponse{
|
||||
ModifiedTsNs: fileModTsNs,
|
||||
|
||||
Reference in New Issue
Block a user