Closed oblique closed 5 years ago
Since all Rkv methods use &self, shouldn't Arc<RwLock<Rkv>> simplified to Arc<Rkv>? Are there any reasons RwLock is used?
Rkv
&self
Arc<RwLock<Rkv>>
Arc<Rkv>
RwLock
Nevermind, I just saw PR #130.
Since all
Rkv
methods use&self
, shouldn'tArc<RwLock<Rkv>>
simplified toArc<Rkv>
? Are there any reasonsRwLock
is used?