Skip to content

Commit

Permalink
Update random key generation range in setInterval function
Browse files Browse the repository at this point in the history
  • Loading branch information
L422Y committed Nov 17, 2023
1 parent 9017649 commit a29e24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const myPosts = MegaMap({

// simulate a record load every second
setInterval(async () => {
await megaMap.get(`key${Math.floor(Math.random() * 1008) + 1}`)
await megaMap.get(`key${Math.floor(Math.random() * 1000) + 1}`)
}, 1000)

```
Expand Down

0 comments on commit a29e24d

Please sign in to comment.