fix: use hash provided by constructor
This commit is contained in:
parent
dde5d255a6
commit
f98b0f48bd
|
@ -165,7 +165,7 @@ func (f *S5File) init(offset int64) error {
|
|||
|
||||
func (f *S5File) Record() (*metadata.UploadMetadata, error) {
|
||||
if f.record == nil {
|
||||
record, err := f.metadata.GetUpload(context.Background(), f.Hash())
|
||||
record, err := f.metadata.GetUpload(context.Background(), f.hash)
|
||||
|
||||
if err != nil {
|
||||
return nil, errors.New("file does not exist")
|
||||
|
|
Loading…
Reference in New Issue