diff --git a/packages/utils/src/pins.ts b/packages/utils/src/pins.ts index 0d9095aba..40402db94 100644 --- a/packages/utils/src/pins.ts +++ b/packages/utils/src/pins.ts @@ -75,7 +75,8 @@ export class PinsImpl implements Pins { const pinKey = toDSKey(cid) if (await this.datastore.has(pinKey)) { - throw new Error('Already pinned') + yield cid + return } const depth = Math.round(options.depth ?? Infinity)