Change the UpdateStore to have different processed and pending meta types

This commit is contained in:
Clément Renault 2020-10-21 13:52:15 +02:00
parent 16ab3e02a9
commit 4eeeccb9cd
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
2 changed files with 32 additions and 21 deletions

View file

@ -359,7 +359,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
});
async fn buf_stream(
update_store: Arc<UpdateStore<String>>,
update_store: Arc<UpdateStore<String, String>>,
update_status_sender: broadcast::Sender<UpdateStatus<String>>,
mut stream: impl futures::Stream<Item=Result<impl bytes::Buf, warp::Error>> + Unpin,
) -> Result<impl warp::Reply, warp::Rejection>