Improve example entrypoint
This commit is contained in:
parent
ae0242fc26
commit
84ad093409
@ -15,8 +15,8 @@ const msg = await readStdin();
|
|||||||
const result = await pipeline(msg, [
|
const result = await pipeline(msg, [
|
||||||
noopPolicy,
|
noopPolicy,
|
||||||
[hellthreadPolicy, { limit: 100 }],
|
[hellthreadPolicy, { limit: 100 }],
|
||||||
antiDuplicationPolicy,
|
[antiDuplicationPolicy, { ttl: 60000, minLength: 50 }],
|
||||||
rateLimitPolicy,
|
[rateLimitPolicy, { whitelist: ['127.0.0.1'] }],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
writeStdout(result);
|
writeStdout(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user