forked from deadvey/button
fixed max file opened limit
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -65,6 +65,7 @@ async fn main() {
|
|||||||
drop(pingscores);
|
drop(pingscores);
|
||||||
let mut file = fs::OpenOptions::new().write(true).truncate(true).open("pingscores.json").unwrap();
|
let mut file = fs::OpenOptions::new().write(true).truncate(true).open("pingscores.json").unwrap();
|
||||||
file.write_all(file_contents.as_bytes()).unwrap();
|
file.write_all(file_contents.as_bytes()).unwrap();
|
||||||
|
file.flush().unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user