fix(blossom): use io.ReadSeeker in Blossom example

This should fix the failing pipeline test
This commit is contained in:
Anthony Accioly
2024-11-21 23:02:17 +00:00
committed by fiatjaf_
parent 3f26a1f727
commit 7bfdbb557c

View File

@@ -31,7 +31,7 @@ func main() {
fmt.Println("storing", sha256, len(body))
return nil
})
bl.LoadBlob = append(bl.LoadBlob, func(ctx context.Context, sha256 string) (io.Reader, error) {
bl.LoadBlob = append(bl.LoadBlob, func(ctx context.Context, sha256 string) (io.ReadSeeker, error) {
fmt.Println("loading", sha256)
blob := strings.NewReader("aaaaa")
return blob, nil