mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-29 06:00:28 +08:00
git-storage: remove pool
There is an advisory error[0] relating to tokio which is transitively brought in via deadpool. Since git-storage is not currently used and heartwood is avoiding any async runtimes, the pool module is removed. [0]: https://rustsec.org/advisories/RUSTSEC-2023-0001.html Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -35,8 +35,6 @@ impl Read {
|
||||
/// [`Read`] can be sent between threads, but it can't be shared between
|
||||
/// threads. _Some_ operations are safe to perform concurrently in much
|
||||
/// the same way two `git` processes can access the same repository.
|
||||
/// However, if you need multiple [`Read`]s to be shared between
|
||||
/// threads, use a [`crate::Pool`] instead.
|
||||
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, error::Init> {
|
||||
crate::init();
|
||||
|
||||
|
||||
@@ -50,8 +50,6 @@ impl Write {
|
||||
/// [`Write`] can be sent between threads, but it can't be shared between
|
||||
/// threads. _Some_ operations are safe to perform concurrently in much
|
||||
/// the same way two `git` processes can access the same repository.
|
||||
/// However, if you need multiple [`Write`]s to be shared between
|
||||
/// threads, use a [`crate::Pool`] instead.
|
||||
pub fn open<P: AsRef<Path>>(path: P, info: UserInfo) -> Result<Self, error::Init> {
|
||||
crate::init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user