feat: define interface to add user's traffic pattern

This commit is contained in:
realaravinth
2022-05-14 18:22:21 +05:30
parent 04b0073d7c
commit 2132ab5791
2 changed files with 20 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ pub async fn database_works<'a, T: MCDatabase>(
p: &Register<'a>,
c: &CreateCaptcha<'a>,
l: &[Level],
tp: &TrafficPattern,
) {
assert!(db.ping().await, "ping test");
if db.username_exists(p.username).await.unwrap() {