Satellite-im / Warp

Interface Driven Distributed Data Service
MIT License
15 stars 4 forks source link

refactor: Return stream for `MultiPass::get_identity` #546

Closed dariusc93 closed 3 months ago

dariusc93 commented 3 months ago

Currently, we would return a list for MultiPass::get_identity, but if there is a large list being generated, this may cause delays and likely an increase in memory during that process. We could negate this by returning a Stream for the function instead, allowing the end-user to poll the stream to completion or according to their use-case.