Skip to content

Conversation

@undyingwraith
Copy link

Thanks to @NiKrause for finding the fix

  • Change IdentityBlockstore.get from sync generator (* get) to async generator (async * get)
  • Fixes TypeError: yield* (intermediate value) is not iterable when delegating to async generator blockstores
  • Make MemoryBlockstore.get an async generator to reveal similar problems
  • Add test case to verify async generator delegation works correctly
  • Fixes issue IdentityBlockstore.get should be async generator, not sync generator #361

…tion bug

- Change IdentityBlockstore.get from sync generator (* get) to async generator (async * get)
- Fixes TypeError: yield* (intermediate value) is not iterable when delegating to async generator blockstores
- Make MemoryBlockstore.get an async generator to reveal similar problems
- Add test case to verify async generator delegation works correctly
- Fixes issue ipfs#361
@undyingwraith undyingwraith changed the title fix: make IdentityBlockstore.get async generator to fix yield* delegation bug fix: make IdentityBlockstore.get async generator to fix yield* delega... Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant