nostr-rs-relay

My dev fork of nostr-rs-relay
git clone git://jb55.com/nostr-rs-relay
Log | Files | Refs | README | LICENSE

commit 0e288fe678df4dd919be8782341c0c3d28a41240
parent bfc804e18c94f9ec0c124d558e25a7cc807168c7
Author: Greg Heartsfield <scsibug@imap.cc>
Date:   Thu, 23 Dec 2021 21:36:46 -0600

feat: send messages in order of oldest to newest

Diffstat:
Msrc/db.rs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/db.rs b/src/db.rs @@ -246,6 +246,8 @@ fn query_from_sub(sub: &Subscription) -> String { query.push_str(" WHERE "); query.push_str(&filter_clauses.join(" OR ")); } + // add order clause + query.push_str(" ORDER BY created_at ASC"); debug!("query string: {}", query); query }