Skip to content

Commit

Permalink
Reword comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Oct 12, 2023
1 parent cdb19bf commit 66e4f4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maxminddb/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ def __init__(

ipv4_start = 0
if self._metadata.ip_version == 6:
# We are looking up an IPv4 address in an IPv6 tree. Skip over the
# first 96 nodes.
# We store the IPv4 starting node as an optimization for IPv4 lookups
# in IPv6 trees. This allows us to skip over the first 96 nodes in
# this case.
node = 0
for _ in range(96):
if node >= self._metadata.node_count:
Expand Down

0 comments on commit 66e4f4d

Please sign in to comment.