-
I see that you specified version 0.5.4 of ip2location while changing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The change was prompted by updates to the To confirm this, I checked the relevant code in the I chose version 0.5.4 in |
Beta Was this translation helpful? Give feedback.
The change was prompted by updates to the
ip2location
crate. In earlier versions, the lookup API required a mutable reference, which necessitated the use ofArc<Mutex<ip2location::DB>>
. However, after updating theip2location
version for review-database, the compiler indicated that a mutable reference was no longer needed.To confirm this, I checked the relevant code in the
ip2location
repository and found that the lookup API now takes a shared reference (&self
) instead of a mutable one (&mut self
). This change eliminated the need for aMutex
.I chose version 0.5.4 in
Cargo.toml
because of this issue, which suggested improvements in the library's API. While the actual change to the refere…