Skip to content

Commit

Permalink
Fix fnv_a1 not found error.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed May 10, 2024
1 parent b00ffd3 commit b581c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/handler/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def process_response(self, response: dict) -> None:
# Make the key unique.

key += "_" + "_".join(
format(fnv_1a(x["newText"].encode('utf-8')), 'x')[:8]
format(self.fnv_1a(x["newText"].encode('utf-8')), 'x')[:8]
for x in item.get("additionalTextEdits", []))

# Build candidate.
Expand Down

0 comments on commit b581c98

Please sign in to comment.