app_async: fix Reader::new
This commit is contained in:
parent
feb2303db9
commit
33abc15268
@ -145,7 +145,7 @@ async fn main() {
|
||||
}
|
||||
|
||||
async fn read_from_db(id: u32) -> Option<Question> {
|
||||
let reader: async_db::Reader<Question> = async_db::Reader::new(NEW_DB_FILENAME, 2048)
|
||||
let reader: async_db::Reader<Question> = async_db::Reader::new(NEW_DB_FILENAME)
|
||||
.await
|
||||
.expect("new db reader");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user