More API refactoring

This commit is contained in:
Zed
2019-10-02 22:28:53 +02:00
parent bafe5fb550
commit bb83b6b6d3
5 changed files with 21 additions and 29 deletions

View File

@@ -17,9 +17,6 @@ proc getTweet*(username, id, after, agent: string): Future[Conversation] {.async
result = parseConversation(html, after)
let
vidsFut = getConversationVideos(result, agent)
pollFut = getConversationPolls(result, agent)
cardFut = getConversationCards(result, agent)
await all(vidsFut, pollFut, cardFut)
await all(getConversationVideos(result, agent),
getConversationCards(result, agent),
getConversationPolls(result, agent))