Skip to content

Commit

Permalink
fix(launchpad): uncomment VerifyPinned
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Dec 19, 2024
1 parent 51b7362 commit 811fe46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions go/pkg/launchpad/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ func (s *Launchpad) UploadMetadatas(ctx context.Context, req *launchpadpb.Upload
}

// Check pinning
// pinningSrv, err := NewPinningService(Pinata, pinataJwt)
// if err != nil {
// return nil, errors.Wrap(err, "failed to get pinning service")
// }

// if _, err := pinningSrv.VerifyPinned(pinnedCIDs...); err != nil {
// return nil, errors.Wrap(err, "failed to verify pinned images")
// }
pinningSrv, err := NewPinningService(Pinata, pinataJwt)
if err != nil {
return nil, errors.Wrap(err, "failed to get pinning service")
}

if _, err := pinningSrv.VerifyPinned(pinnedCIDs...); err != nil {
return nil, errors.Wrap(err, "failed to verify pinned images")
}

// Check if all files have been pinned correctly
for _, metadataItem := range req.Metadatas {
Expand Down

0 comments on commit 811fe46

Please sign in to comment.