-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from G8XSU/ldk-server-rename
Rename to LdkServer.
- Loading branch information
Showing
6 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
use prost::DecodeError; | ||
|
||
/// When there is an error in request to LDK Node Server, the response contains a relevant error code. | ||
/// When there is an error in request to LDK Server, the response contains a relevant error code. | ||
#[derive(Debug)] | ||
pub enum LdkNodeServerError { | ||
pub enum LdkServerError { | ||
/// There is an unknown error. (Placeholder until error handling is done.) | ||
InternalError(String), | ||
} | ||
|
||
impl From<DecodeError> for LdkNodeServerError { | ||
impl From<DecodeError> for LdkServerError { | ||
fn from(err: DecodeError) -> Self { | ||
LdkNodeServerError::InternalError(err.to_string()) | ||
LdkServerError::InternalError(err.to_string()) | ||
} | ||
} | ||
|
||
impl From<reqwest::Error> for LdkNodeServerError { | ||
impl From<reqwest::Error> for LdkServerError { | ||
fn from(err: reqwest::Error) -> Self { | ||
LdkNodeServerError::InternalError(err.to_string()) | ||
LdkServerError::InternalError(err.to_string()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "ldk-node-server" | ||
name = "ldk-server" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|