From 2e0884564fdbe11e505d9cf48be618b917f42cf7 Mon Sep 17 00:00:00 2001 From: Cosmos SDK <113218068+github-prbot@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:14:27 +0200 Subject: [PATCH] chore: fix spelling errors (#21092) Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Julien Robert --- .github/.codespellignore | 3 ++- server/v2/store/commands.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.codespellignore b/.github/.codespellignore index e1e8758d0c..4ac943d563 100644 --- a/.github/.codespellignore +++ b/.github/.codespellignore @@ -4,4 +4,5 @@ keypair pastTime hasTables Nam -EyT \ No newline at end of file +EyT +upTo \ No newline at end of file diff --git a/server/v2/store/commands.go b/server/v2/store/commands.go index e1c8a20dfb..c22cd56ce3 100644 --- a/server/v2/store/commands.go +++ b/server/v2/store/commands.go @@ -64,8 +64,8 @@ Supported app-db-backend types include 'goleveldb', 'rocksdb', 'pebbledb'.`, return fmt.Errorf("the database has no valid heights to prune, the latest height: %v", latestHeight) } - upTo := latestHeight - keepRecent - cmd.Printf("pruning heights up to %v\n", upTo) + diff := latestHeight - keepRecent + cmd.Printf("pruning heights up to %v\n", diff) err = rootStore.Prune(latestHeight) if err != nil {