Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/headerreader/blob_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,14 @@ func saveBlobDataToDisk(rawData json.RawMessage, slot uint64, blobDirectory stri
return fmt.Errorf("could not create file to store fetched blobs")
}
full := fullResult[json.RawMessage]{Data: rawData}
defer file.Close()
fullbytes, err := json.Marshal(full)
if err != nil {
return fmt.Errorf("unable to marshal data into bytes while attempting to store fetched blobs")
}
if _, err := file.Write(fullbytes); err != nil {
return fmt.Errorf("failed to write blob data to disk")
}
file.Close()
return nil
}

Expand Down