|
I see that you specified version 0.5.4 of ip2location while changing |
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 |
|
I see that you specified version 0.5.4 of ip2location while changing |
|
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 |
The change was prompted by updates to the
ip2locationcrate. In earlier versions, the lookup API required a mutable reference, which necessitated the use ofArc<Mutex<ip2location::DB>>. However, after updating theip2locationversion for review-database, the compiler indicated that a mutable reference was no longer needed.To confirm this, I checked the relevant code in the
ip2locationrepository 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.tomlbecause of this issue, which suggested improvements in the library's API. While the actual change to the refere…