nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 923a9b5a7aede64a76e399d9880368f0a1e7e9bf
parent 525f372f40dfd280a2b931f756cf777cf604e9c0
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 18 Aug 2023 08:03:32 -0700

tsid: switch to uint64_max

These are no longer u32s

Diffstat:
Mnostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb.c b/nostrdb.c @@ -157,7 +157,7 @@ static inline void ndb_tsid_init(struct ndb_tsid *key, unsigned char *id, static inline void ndb_tsid_high(struct ndb_tsid *key, unsigned char *id) { memcpy(key->id, id, 32); - key->timestamp = 0xFFFFFFFF; + key->timestamp = UINT64_MAX; } enum ndb_ingester_msgtype {