mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-29 17:19:57 -07:00
global: rename some indexes
This commit is contained in:
@@ -42,14 +42,14 @@ where
|
||||
version = version + VERSION;
|
||||
let res = Self::import(parent, name, version);
|
||||
match res {
|
||||
// Err(Error::DifferentCompressionMode)
|
||||
// | Err(Error::WrongEndian)
|
||||
// | Err(Error::WrongLength)
|
||||
// | Err(Error::DifferentVersion { .. }) => {
|
||||
// let path = Self::path_(parent, name);
|
||||
// fs::remove_file(path)?;
|
||||
// Self::import(parent, name, version)
|
||||
// }
|
||||
Err(Error::DifferentCompressionMode)
|
||||
| Err(Error::WrongEndian)
|
||||
| Err(Error::WrongLength)
|
||||
| Err(Error::DifferentVersion { .. }) => {
|
||||
let path = Self::path_(parent, name);
|
||||
fs::remove_file(path)?;
|
||||
Self::import(parent, name, version)
|
||||
}
|
||||
_ => res,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user