Skip to content

Commit e69e577

Browse files
committed
pr feedback
1 parent 4db3fb9 commit e69e577

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/file/file_manager_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type (
7171
fileToUpdate *mpi.File,
7272
) error
7373
SetIsConnected(isConnected bool)
74-
renameFile(ctx context.Context, hash, fileName, tempDir string) error
74+
RenameFile(ctx context.Context, hash, fileName, tempDir string) error
7575
UpdateClient(ctx context.Context, fileServiceClient mpi.FileServiceClient)
7676
}
7777

@@ -610,7 +610,7 @@ actionsLoop:
610610
continue
611611
case model.Add, model.Update:
612612
fileMeta := fileAction.File.GetFileMeta()
613-
err := fms.fileServiceOperator.renameFile(ctx, fileMeta.GetHash(), fileMeta.GetName(), tempDir)
613+
err := fms.fileServiceOperator.RenameFile(ctx, fileMeta.GetHash(), fileMeta.GetName(), tempDir)
614614
if err != nil {
615615
actionError = err
616616

internal/file/file_service_operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (fso *FileServiceOperator) UpdateFile(
277277
}
278278

279279
// renameFile, renames (moves) file from tempDir to new location to update file.
280-
func (fso *FileServiceOperator) renameFile(
280+
func (fso *FileServiceOperator) RenameFile(
281281
ctx context.Context, hash, fileName, dir string,
282282
) error {
283283
slog.DebugContext(ctx, "Renaming file", "file", fileName)

0 commit comments

Comments
 (0)