From 342c71e24d6ddb88541c203e70bbaa373aae9f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20H=C3=B6rl?= Date: Fri, 15 Dec 2023 21:41:31 +0100 Subject: [PATCH] fix typos in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a62a118..d34bd6f 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ This will batch all calls made within a certain time frame UP to a certain max b ```ts const batcher = batshit.create({ ..., - scheduler: maxBatchSizeScheduler({ + scheduler: windowedFiniteBatchScheduler({ windowMs: 10, maxBatchSize: 100, }), @@ -166,7 +166,7 @@ const batcher = batshit.create({ }); ``` -### Fethcing with needed context +### Fetching with needed context If the batch fetcher needs some context like an sdk or client to make its fetching you can use a memoizer to make sure that you reuse a batcher for the given context in the hook calls.