nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

commit 8e747888819b0af0a2e86ac5736dbe6fbf661c07
parent 8401c6628ad4bb8b6189d4c973a7383d0a908634
Author: Yuki Kishimoto <yukikishimoto@protonmail.com>
Date:   Mon,  8 Apr 2024 11:12:06 +0200

Fix `FilterBuilder::limit` method

Use `start_limit_field` instead of `start_since_field`.

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>

Diffstat:
Msrc/filter.rs | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/filter.rs b/src/filter.rs @@ -142,7 +142,6 @@ impl FilterBuilder { self.start_field(bindings::ndb_filter_fieldtype_NDB_FILTER_SINCE); } - #[allow(dead_code)] fn start_limit_field(&mut self) { self.start_field(bindings::ndb_filter_fieldtype_NDB_FILTER_LIMIT); } @@ -239,7 +238,7 @@ impl FilterBuilder { } pub fn limit(&mut self, limit: u64) -> &mut Self { - self.start_since_field(); + self.start_limit_field(); self.add_int_element(limit); self.end_field(); self