Skip to content

Commit

Permalink
More precisely document since/until bounds. (#1284)
Browse files Browse the repository at this point in the history
* More precisely document since/until bounds.

Lower in this document, this is expressed as "since <= created_at <= until".

But the English description said that these values had to be "newer than" or "older than".

These two were in conflict. I assume the inclusive behavior is the intended one, since that documentation was added later to clarify. This just makes both cases match.

* Update 01.md

Co-authored-by: Alex Gleason <[email protected]>

* Update 01.md

Co-authored-by: Alex Gleason <[email protected]>

---------

Co-authored-by: Alex Gleason <[email protected]>
  • Loading branch information
NfNitLoop and alexgleason authored Jul 5, 2024
1 parent cc7cdd5 commit 8c47577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 01.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th
"authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>,
"kinds": <a list of a kind numbers>,
"#<single-letter (a-zA-Z)>": <a list of tag values, for #e — a list of event ids, for #p — a list of pubkeys, etc.>,
"since": <an integer unix timestamp in seconds, events must be newer than this to pass>,
"until": <an integer unix timestamp in seconds, events must be older than this to pass>,
"since": <an integer unix timestamp in seconds. Events must have a created_at >= to this to pass>,
"until": <an integer unix timestamp in seconds. Events must have a created_at <= to this to pass>,
"limit": <maximum number of events relays SHOULD return in the initial query>
}
```
Expand Down

0 comments on commit 8c47577

Please sign in to comment.