Skip to content

Commit

Permalink
optimize key format
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope committed Nov 3, 2022
1 parent 36a150e commit 042b877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
var (
// All node keys are prefixed with the byte 'n'. This ensures no collision is
// possible with the other keys, and makes them easier to traverse. They are indexed by the node hash.
nodeKeyFormat = keyformat.NewKeyFormat('n', hashSize) // n<hash>
nodeKeyFormat = keyformat.NewKeyFormat('a', int64Size) // n<hash>

// Orphans are keyed in the database by their expected lifetime.
// The first number represents the *last* version at which the orphan needs
Expand Down

0 comments on commit 042b877

Please sign in to comment.