Improve example entrypoint

This commit is contained in:
Alex Gleason 2023-03-24 20:51:30 -05:00
parent ae0242fc26
commit 84ad093409
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -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);