Skip to content

Commit

Permalink
fix size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Aug 18, 2023
1 parent df06603 commit 2db6fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (cmd *UpdateFileCommand) ProcessContent(ctx context.Context, req *http.Requ
}

cmd.fileChanger.AllocationID = allocationObj.ID
cmd.fileChanger.Size += fileOutputData.Size
// cmd.fileChanger.Size += fileOutputData.Size

cmd.allocationChange = &allocation.AllocationChange{}
cmd.allocationChange.ConnectionID = connectionObj.ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (cmd *UploadFileCommand) ProcessContent(ctx context.Context, req *http.Requ
}

cmd.fileChanger.AllocationID = allocationObj.ID
cmd.fileChanger.Size += fileOutputData.Size
// cmd.fileChanger.Size += fileOutputData.Size

cmd.allocationChange = &allocation.AllocationChange{}
cmd.allocationChange.ConnectionID = connectionObj.ID
Expand Down

0 comments on commit 2db6fe4

Please sign in to comment.