Skip to content

chore: fix some comments #1802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/gravity-bridge/dev-setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ message DelegateKeysSignMsg {
}
```

Use your favorite protobuf library to encode the message, and use your favorite web3 library to do the messge signing,
Use your favorite protobuf library to encode the message, and use your favorite web3 library to do the message signing,
for example, this is how it could be done in python:

```python
Expand Down
2 changes: 1 addition & 1 deletion memiavl/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func (db *DB) checkBackgroundSnapshotRewrite() error {
return nil
}

// pruneSnapshot prune the old snapshots
// pruneSnapshots prune the old snapshots
func (db *DB) pruneSnapshots() {
// wait until last prune finish
db.pruneSnapshotLock.Lock()
Expand Down
2 changes: 1 addition & 1 deletion memiavl/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func OpenSnapshot(snapshotDir string) (snapshot *Snapshot, err error) {
return nil, err
}
if len(bz) != SizeMetadata {
return nil, fmt.Errorf("wrong metadata file size, expcted: %d, found: %d", SizeMetadata, len(bz))
return nil, fmt.Errorf("wrong metadata file size, expected: %d, found: %d", SizeMetadata, len(bz))
}

magic := binary.LittleEndian.Uint32(bz)
Expand Down
4 changes: 2 additions & 2 deletions versiondb/extsort/sort.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package extsort implements external sorting algorithm, it has several differnet design choices compared with alternatives like https://github.com/lanrat/extsort:
// Package extsort implements external sorting algorithm, it has several different design choices compared with alternatives like https://github.com/lanrat/extsort:
// - apply efficient compressions(delta encoding + snappy) to the chunk files to reduce IO cost,
// since the items are sorted, delta encoding should be effective to it, and snappy is pretty efficient.
// - chunks are stored in separate temporary files, so the chunk sorting and saving can run in parallel (eats more ram though).
Expand All @@ -25,7 +25,7 @@ type Options struct {
DeltaEncoding bool
// if apply snappy compression to the items in sorted chunk
SnappyCompression bool
// Maxiumum uncompressed size of the sorted chunk
// Maximum uncompressed size of the sorted chunk
MaxChunkSize int64
// function that compares two items
LesserFunc LesserFunc
Expand Down