Skip to content

Commit

Permalink
fix typos in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderProd authored Dec 15, 2023
1 parent 233d54f commit 342c71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 342c71e

Please sign in to comment.