Skip to content

Commit

Permalink
uplink(fix): Fix typo in an Uplink Error enum variant
Browse files Browse the repository at this point in the history
Fix a typo in one of the variants of error::Uplink enum.
  • Loading branch information
ifraixedes committed Oct 23, 2023
1 parent 7bfbee8 commit 2f31004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uplink/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub enum Uplink {
/// An Edge Auth service network or protocol error.
EdgeAuthDialFailed(String),
/// An Edge Auth service internal error.
EdgeRegsterAccessFailed(String),
EdgeRegisterAccessFailed(String),

/// Unknowns isn't an actual code in the FFI constants. It's mostly used to map a code when it
/// doesn't match any and have not to panic. Callers should report this as a BUG that may be
Expand Down Expand Up @@ -268,7 +268,7 @@ impl Uplink {
ulksys::UPLINK_ERROR_STORAGE_LIMIT_EXCEEDED => Self::StorageLimitExceeded(msg),
ulksys::UPLINK_ERROR_UPLOAD_DONE => Self::UploadDone(msg),
ulksys::EDGE_ERROR_AUTH_DIAL_FAILED => Self::EdgeAuthDialFailed(msg),
ulksys::EDGE_ERROR_REGISTER_ACCESS_FAILED => Self::EdgeRegsterAccessFailed(msg),
ulksys::EDGE_ERROR_REGISTER_ACCESS_FAILED => Self::EdgeRegisterAccessFailed(msg),
_ => Self::Unknown(msg),
})
}
Expand Down Expand Up @@ -307,7 +307,7 @@ impl fmt::Display for Uplink {
Self::StorageLimitExceeded(msg) => ("storage limit exceeded", msg),
Self::UploadDone(msg) => ("upload done", msg),
Self::EdgeAuthDialFailed(msg) => ("dial to auth service failed", msg),
Self::EdgeRegsterAccessFailed(msg) => ("register access for edge service failed", msg),
Self::EdgeRegisterAccessFailed(msg) => ("register access for edge service failed", msg),
Self::Unknown(msg) => ("unknown", msg),
};

Expand Down

0 comments on commit 2f31004

Please sign in to comment.