Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Mar 13, 2023
1 parent f6ab687 commit be44270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ type NodeImporter interface {

// CompressExporter wraps the normal exporter to apply some compressions on `ExportNode`:
// - branch keys are skipped
// - leaf keys are encoded with delta-encoding
// - leaf keys are encoded with delta compared with the previous leaf
// - branch node's version are encoded with delta compared with the max version in it's children
type CompressExporter struct {
inner NodeExporter
lastKey []byte
Expand Down Expand Up @@ -53,8 +54,7 @@ func (e *CompressExporter) Next() (*ExportNode, error) {
return n, nil
}

// CompressImporter wraps the normal importer to do de-compressions before hand,
// NOTE: it don't need to re-fill the branch keys, because the import logic can handle that directly.
// CompressImporter wraps the normal importer to do de-compressions before hand.
type CompressImporter struct {
inner NodeImporter
lastKey []byte
Expand Down

0 comments on commit be44270

Please sign in to comment.