mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-06 22:41:56 +02:00
volume-rust: match the tuple variant VolumeError::ReadOnly in write_volume_needles
This commit is contained in:
1 parent
9d3907e36c
commit
3fd5e4c329
1 file changed
+1
-1
@@ -761,7 +761,7 @@ impl Store {
|
||||
Err(e) => writes
|
||||
.iter()
|
||||
.map(|_| match e {
|
||||
VolumeError::ReadOnly => Err(VolumeError::ReadOnly),
|
||||
VolumeError::ReadOnly(vid) => Err(VolumeError::ReadOnly(vid)),
|
||||
_ => Err(VolumeError::NotFound),
|
||||
})
|
||||
.collect(),
|
||||
|
||||
Reference in new issue
Block a user