Skip to content

Commit

Permalink
Merge pull request #17 from DougAnderson444/patch-1
Browse files Browse the repository at this point in the history
Slight change to hypertrie use for get...value
  • Loading branch information
RangerMauve authored Sep 2, 2019
2 parents cc630a9 + cbedbb8 commit eae39e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ const trie = hypertrie(null, {
})

trie.put('key', 'value', () => {
trie.get('key', (value) => {
console.log('Loaded value from trie:', value)
trie.get('key', (err, node) => {
console.log('Got key: ', node.key)
console.log('Loaded value from trie: ', node.value)
})
})

Expand Down

0 comments on commit eae39e6

Please sign in to comment.