Fixing up bugs, refactored DHT works alright now

This commit is contained in:
Igor Katson 2023-11-29 23:12:20 +00:00
parent 69b9918e4f
commit aa2a41a53c
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 90 additions and 162 deletions

View file

@ -36,6 +36,7 @@ async fn main() -> anyhow::Result<()> {
let mut f = std::fs::OpenOptions::new()
.create(true)
.write(true)
.truncate(true)
.open(filename)
.unwrap();
serde_json::to_writer_pretty(&mut f, r).unwrap();