feat: add until for request filters

This implements an additional filter criteria for selecting events
prior to some timestamp.

See https://github.com/fiatjaf/nostr/issues/39x
This commit is contained in:
Greg Heartsfield
2021-12-23 21:38:32 -06:00
parent 0e288fe678
commit 100f890284
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ pub struct ReqFilter {
pub pubkey: Option<String>,
/// Events published after this time
pub since: Option<u64>,
/// Events published before this time
pub until: Option<u64>,
/// List of author public keys
pub authors: Option<Vec<String>>,
}