Merge pull request #368 from rustfs/pref

fix readme
This commit is contained in:
guojidan
2025-04-28 14:25:57 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ observability data formats (e.g. Jaeger, Prometheus, etc.) sending to one or mor
2. Run the following command:
```bash
docker-compose -f docker-compose.yml up -d
docker compose -f docker-compose.yml up -d
```
3. Access the Grafana dashboard by navigating to `http://localhost:3000` in your browser. The default username and

View File

@@ -470,7 +470,7 @@ impl Erasure {
self.encoder.as_ref().unwrap().reconstruct(&mut bufs)?;
}
let shards = bufs.into_iter().flatten().collect::<Vec<_>>();
let shards = bufs.into_iter().flatten().map(Bytes::from).collect::<Vec<_>>();
if shards.len() != self.parity_shards + self.data_shards {
return Err(Error::from_string("can not reconstruct data"));
}
@@ -479,7 +479,7 @@ impl Erasure {
if w.is_none() {
continue;
}
match w.as_mut().unwrap().write(shards[i].clone().into()).await {
match w.as_mut().unwrap().write(shards[i].clone()).await {
Ok(_) => {}
Err(e) => {
info!("write failed, err: {:?}", e);