AssumeRoleHandle done

This commit is contained in:
weisd
2024-12-10 16:59:27 +08:00
parent 637d614618
commit 8172c4f06a
21 changed files with 339 additions and 59 deletions
+2
View File
@@ -1,5 +1,7 @@
use std::io::{self, ErrorKind};
use tracing::error;
use crate::{
error::{Error, Result},
quorum::CheckErrorFn,
+1
View File
@@ -1,5 +1,6 @@
use std::io;
use tracing::warn;
use tracing_error::{SpanTrace, SpanTraceStatus};
use crate::disk::error::{clone_disk_err, DiskError};
+1 -1
View File
@@ -54,10 +54,10 @@ use std::slice::Iter;
use std::time::SystemTime;
use std::{collections::HashMap, sync::Arc, time::Duration};
use time::OffsetDateTime;
use tokio::select;
use tokio::sync::mpsc::Sender;
use tokio::sync::{broadcast, mpsc, RwLock};
use tokio::time::{interval, sleep};
use tokio::{fs, select};
use tracing::{debug, info};
use uuid::Uuid;
-1
View File
@@ -9,7 +9,6 @@ use crate::{
use futures::StreamExt;
use http::HeaderMap;
use madmin::heal_commands::HealResultItem;
use madmin::info_commands::DiskMetrics;
use rmp_serde::Serializer;
use s3s::{dto::StreamingBlob, Body};
use serde::{Deserialize, Serialize};
+2 -2
View File
@@ -222,9 +222,9 @@ pub fn split(path: &str) -> (&str, &str) {
(path, "")
}
pub fn dir(path: &str) -> &str {
pub fn dir(path: &str) -> String {
let (a, _) = split(path);
a
clean(a)
}
#[cfg(test)]
mod tests {