Skip to content

Commit

Permalink
fix: update patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Oct 11, 2023
1 parent 5327ecf commit 405f28b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kubo-rpc-server.patch
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ index 19eff91..f78219b 100644
400 => {
let body = response.into_body();
diff --git b/kubo-rpc-server/src/lib.rs a/kubo-rpc-server/src/lib.rs
index a438acd..68c986c 100644
index 4fb7cb1..bd4e190 100644
--- b/kubo-rpc-server/src/lib.rs
+++ a/kubo-rpc-server/src/lib.rs
@@ -11,7 +11,8 @@
Expand Down Expand Up @@ -69,10 +69,10 @@ index a438acd..68c986c 100644
#[must_use]
pub enum SwarmConnectPostResponse {
diff --git b/kubo-rpc-server/src/models.rs a/kubo-rpc-server/src/models.rs
index 20d075b..7a6d6b8 100644
index 4644ce0..ce429ca 100644
--- b/kubo-rpc-server/src/models.rs
+++ a/kubo-rpc-server/src/models.rs
@@ -1037,7 +1037,7 @@ pub struct Error {
@@ -909,7 +909,7 @@ pub struct Error {
pub code: f64,

#[serde(rename = "Type")]
Expand All @@ -81,7 +81,7 @@ index 20d075b..7a6d6b8 100644
}

impl Error {
@@ -1046,7 +1046,7 @@ impl Error {
@@ -918,7 +918,7 @@ impl Error {
Error {
message,
code,
Expand All @@ -90,7 +90,7 @@ index 20d075b..7a6d6b8 100644
}
}
}
@@ -1062,7 +1062,7 @@ impl std::string::ToString for Error {
@@ -934,7 +934,7 @@ impl std::string::ToString for Error {
Some("Code".to_string()),
Some(self.code.to_string()),
Some("Type".to_string()),
Expand All @@ -99,7 +99,7 @@ index 20d075b..7a6d6b8 100644
];

params.into_iter().flatten().collect::<Vec<_>>().join(",")
@@ -1140,7 +1140,7 @@ impl std::str::FromStr for Error {
@@ -1012,7 +1012,7 @@ impl std::str::FromStr for Error {
.into_iter()
.next()
.ok_or_else(|| "Code missing in Error".to_string())?,
Expand Down

0 comments on commit 405f28b

Please sign in to comment.