nostrdb

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

commit 6285179d8d1197b1e9ad268b66337ddbaf069749
parent 38028283a4901d925ca402ea0cc47b7e9a47239a
Author: shuoer86 <129674997+shuoer86@users.noreply.github.com>
Date:   Fri,  5 Jan 2024 23:26:30 +0800

Fix typos

Closes: https://github.com/damus-io/nostrdb/pull/25
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/bolt11/tal.h | 4++--
Msrc/nostrdb.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bolt11/tal.h b/src/bolt11/tal.h @@ -387,7 +387,7 @@ tal_t *tal_parent(const tal_t *ctx); * @type: the type (should match type of @p!) * @p: the tal array to copy (or resized & reparented if take()) * - * The comon case of duplicating an entire tal array. + * The common case of duplicating an entire tal array. */ #define tal_dup_talarr(ctx, type, p) \ ((type *)tal_dup_talarr_((ctx), tal_typechk_(p, type *), \ @@ -418,7 +418,7 @@ tal_t *tal_parent(const tal_t *ctx); * @error_fn: called on errors or NULL (default is abort) * * The defaults are set up so tal functions never return NULL, but you - * can override erorr_fn to change that. error_fn can return, and is + * can override error_fn to change that. error_fn can return, and is * called if alloc_fn or resize_fn fail. * * If any parameter is NULL, that function is unchanged. diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -268,7 +268,7 @@ static int ndb_make_text_search_key(unsigned char *buf, int bufsize, // TODO: need update this to uint64_t // we push this first because our query function can pull this off - // quicky to check matches + // quickly to check matches if (!cursor_push_varint(&cur, (int32_t)note_id)) return 0;