Skip to content

Commit

Permalink
fix: scheme from_str missing redb and tikv (#2766)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranxy authored Aug 3, 2023
1 parent d3b6675 commit 71dd3a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/types/scheme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ impl FromStr for Scheme {
"cacache" => Ok(Scheme::Cacache),
"cos" => Ok(Scheme::Cos),
"dashmap" => Ok(Scheme::Dashmap),
"dropbox" => Ok(Scheme::Dropbox),
"etcd" => Ok(Scheme::Etcd),
"fs" => Ok(Scheme::Fs),
"gcs" => Ok(Scheme::Gcs),
"gdrive" => Ok(Scheme::Gdrive),
"ghac" => Ok(Scheme::Ghac),
"hdfs" => Ok(Scheme::Hdfs),
"http" | "https" => Ok(Scheme::Http),
Expand All @@ -157,17 +159,21 @@ impl FromStr for Scheme {
"mini_moka" => Ok(Scheme::MiniMoka),
"moka" => Ok(Scheme::Moka),
"obs" => Ok(Scheme::Obs),
"onedrive" => Ok(Scheme::Onedrive),
"persy" => Ok(Scheme::Persy),
"redb" => Ok(Scheme::Redb),
"redis" => Ok(Scheme::Redis),
"rocksdb" => Ok(Scheme::Rocksdb),
"s3" => Ok(Scheme::S3),
"sftp" => Ok(Scheme::Sftp),
"sled" => Ok(Scheme::Sled),
"supabase" => Ok(Scheme::Supabase),
"oss" => Ok(Scheme::Oss),
"vercel_artifacts" => Ok(Scheme::VercelArtifacts),
"wasabi" => Ok(Scheme::Wasabi),
"webdav" => Ok(Scheme::Webdav),
"webhdfs" => Ok(Scheme::Webhdfs),
"tikv" => Ok(Scheme::Tikv),
_ => Ok(Scheme::Custom(Box::leak(s.into_boxed_str()))),
}
}
Expand Down

0 comments on commit 71dd3a5

Please sign in to comment.