Fix typos

This commit is contained in:
Franck Royer 2021-10-05 13:44:37 +11:00
parent 0d82b74854
commit 2fbe926df2
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 5 additions and 5 deletions

View File

@ -275,9 +275,9 @@ Depending on your use case, you may not need to retrieve 30 days worth of messag
The timestamp is set by the sender. The timestamp is set by the sender.
By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76). By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76).
You can filter messages that include a timestamp within given bound with the `timeFilter` option. You can filter messages that include a timestamp within given bounds with the `timeFilter` option.
Let's only retrieve messages up to a week old: Retrieve messages up to a week old:
```js ```js
const startTime = new Date(); const startTime = new Date();

View File

@ -176,12 +176,12 @@ Depending on your use case, you may not need to retrieve 30 days worth of messag
The timestamp is set by the sender. The timestamp is set by the sender.
By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76). By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76).
You can filter messages that include a timestamp within given bound with the `timeFilter` option. You can filter messages that include a timestamp within given bounds with the `timeFilter` option.
Let's only retrieve messages up to a week old: Retrieve messages up to a week old:
```js ```js
// `ContentTopic` and `callback` definitions // [..] `ContentTopic` and `callback` definitions
const startTime = new Date(); const startTime = new Date();
// 7 days/week, 24 hours/day, 60min/hour, 60secs/min, 100ms/sec // 7 days/week, 24 hours/day, 60min/hour, 60secs/min, 100ms/sec