Skip to content

Commit

Permalink
Merge pull request #76 from 0chain/fix/file-close
Browse files Browse the repository at this point in the history
Fix file error
  • Loading branch information
boddumanohar authored Jun 29, 2023
2 parents c0d99e5 + 4414d05 commit 1c2e6c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dstorage/dstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ func (d *DStorageService) GetFileMetaData(ctx context.Context, remotePath string

func (d *DStorageService) MultiUpload(ctx context.Context, ops []sdk.OperationRequest) (err error) {
err = d.allocation.DoMultiOperation(ops)
for _, op := range ops {
f := op.FileReader.(util.File)
f.Close()
}
return err
}

Expand Down

0 comments on commit 1c2e6c2

Please sign in to comment.