aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-01 01:21:40 -0700
committerFuwn <[email protected]>2022-04-01 01:21:40 -0700
commiteb480e47cbee42f0d20fc6edebd2270dbbb72f54 (patch)
tree057bd0f930a8322d23cab3900a40eea90d7fdc95 /examples
parentfeat: prep for 0.1.0 (diff)
downloadwindmark-comments-eb480e47cbee42f0d20fc6edebd2270dbbb72f54.tar.xz
windmark-comments-eb480e47cbee42f0d20fc6edebd2270dbbb72f54.zip
feat: variable max amount of comments
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark_comments.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/windmark_comments.rs b/examples/windmark_comments.rs
index bfe6bed..fd7d266 100644
--- a/examples/windmark_comments.rs
+++ b/examples/windmark_comments.rs
@@ -20,6 +20,8 @@ use windmark::Response;
#[windmark::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
+ windmark_comments::set_max_comments(10);
+
windmark::Router::new()
.set_private_key_file("windmark_comments_private.pem")
.set_certificate_file("windmark_comments_public.pem")