mirror of
https://github.com/status-im/status-go.git
synced 2025-01-26 22:50:40 +00:00
d32cd18c09
In RequestMessagesSync subscriber is listening to a feed where all whisper events are posted. After we received event with a request hash - subscriber will stop actively consuming messages from a feed, as a subscription channel will get overflow and whole feed will get blocked. Some events are posted to a feed before request is sent, so blocked feed results in blocked sending. Now we will unsubscribe after relevant event was received, and terminate subscriber explicitly by timeout.