Skip to content

Commit d11b722

Browse files
committed
fix linter errors
1 parent 35f6f56 commit d11b722

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

bindings/wasm/src/content_types/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,24 @@ use crate::ErrorWrapper;
1313
/// when surfaced to JavaScript.
1414
#[derive(Debug, Error, ErrorCode)]
1515
pub enum ContentTypeError {
16+
/// Invalid data.
17+
///
18+
/// Content type data failed validation. Not retryable.
1619
#[error("{0}")]
1720
InvalidData(String),
21+
/// Timestamp out of range.
22+
///
23+
/// Timestamp value is outside the representable range. Not retryable.
1824
#[error("{0}")]
1925
TimestampOutOfRange(String),
26+
/// Codec error.
27+
///
28+
/// Content type codec encoding or decoding failed. Not retryable.
2029
#[error("{0}")]
2130
Codec(String),
31+
/// Crypto error.
32+
///
33+
/// Cryptographic operation for content type failed. Not retryable.
2234
#[error("{0}")]
2335
Crypto(String),
2436
}

crates/xmtp_api_d14n/src/config/backend_config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ pub struct ResolvedBackendConfig {
1313

1414
#[derive(Error, Debug, ErrorCode)]
1515
pub enum BackendConfigError {
16+
/// Missing gateway host.
17+
///
18+
/// D14n environment requires `gateway_host` to be set. Not retryable.
1619
#[error("D14n environment '{0:?}' requires gateway_host to be set")]
1720
MissingGatewayHost(XmtpEnv),
21+
/// Auth requires gateway.
22+
///
23+
/// Authentication (auth_callback or auth_handle) requires `gateway_host` to be set. Not retryable.
1824
#[error("Authentication (auth_callback or auth_handle) requires gateway_host to be set")]
1925
AuthRequiresGateway,
2026
}

0 commit comments

Comments
 (0)