···
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
-
use std::collections::HashMap;
use std::time::{Duration, UNIX_EPOCH};
use tokio::net::{TcpListener, ToSocketAddrs};
use tokio::task::block_in_place;
···
cursor: Option<OpaqueApiCursor>,
// TODO: allow reverse (er, forward) order as well
···
return Err(http::StatusCode::BAD_REQUEST);
···
.map_err(|_| http::StatusCode::INTERNAL_SERVER_ERROR)?;
···
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
+
use std::collections::{HashMap, HashSet};
use std::time::{Duration, UNIX_EPOCH};
use tokio::net::{TcpListener, ToSocketAddrs};
use tokio::task::block_in_place;
···
cursor: Option<OpaqueApiCursor>,
// TODO: allow reverse (er, forward) order as well
···
return Err(http::StatusCode::BAD_REQUEST);
+
// ugh could have just passed the zero-len hashmap through, same check in the impl
+
let empty = query.did.is_empty();
+
let mut out = HashSet::new();
+
out.insert(Did(d.clone()));
···
.map_err(|_| http::StatusCode::INTERNAL_SERVER_ERROR)?;