From 84ad093409e50baec2caa88d4dfe631b840b343c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 Mar 2023 20:51:30 -0500 Subject: [PATCH] Improve example entrypoint --- entrypoint.example.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.example.ts b/entrypoint.example.ts index 8ec5df6..875dd85 100644 --- a/entrypoint.example.ts +++ b/entrypoint.example.ts @@ -15,8 +15,8 @@ const msg = await readStdin(); const result = await pipeline(msg, [ noopPolicy, [hellthreadPolicy, { limit: 100 }], - antiDuplicationPolicy, - rateLimitPolicy, + [antiDuplicationPolicy, { ttl: 60000, minLength: 50 }], + [rateLimitPolicy, { whitelist: ['127.0.0.1'] }], ]); writeStdout(result);