Skip to content

Commit 1467c9f

Browse files
committed
updated workding on readme
1 parent d72c287 commit 1467c9f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ This package exposes 3 additional functionalities which comprise the internals o
226226

227227
- `processQuery(queryAST: DocumentNode): number`
228228
- returns: complexity of the query and exposes `maxDepth` property for depth limiting
229-
- usage:
230229

231230
```ts
232231
import { typeWeightsFromSchema } from 'graphql-limiter';
@@ -251,8 +250,6 @@ This package exposes 3 additional functionalities which comprise the internals o
251250
- `processRequest(uuid: string, timestamp: number, tokens = 1): Promise<RateLimiterResponse>`
252251
- returns: `{ success: boolean, tokens: number, retryAfter?: number }` | where tokens is tokens available, retryAfter is time to wait in seconds before the request would be successful and success is false if the request is blocked
253252

254-
usage:
255-
256253
```ts
257254
import { rateLimiter } from 'graphql-limiter';
258255

0 commit comments

Comments
 (0)