Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Dec 13, 2023
1 parent 6cf6980 commit 4ab9d46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion quickwit/quickwit-ingest/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum IngestServiceError {
IoError(String),
#[error("rate limited")]
RateLimited,
#[error("the ingest service is unavailable")]
#[error("ingest service is unavailable")]
Unavailable,
}

Expand Down
5 changes: 2 additions & 3 deletions quickwit/quickwit-ingest/src/ingest_v2/mrecordlog_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,15 @@ pub(super) struct MemoryUsage(ByteSize);
#[derive(Debug, Clone, Copy, thiserror::Error)]
pub(super) enum NotEnoughCapacityError {
#[error(
"write-ahead log is full, capacity: usage: {usage}, capacity: {capacity}, requested: \
{requested}"
"write-ahead log is full, capacity: {capacity}, usage: {usage}, requested: {requested}"
)]
Disk {
usage: ByteSize,
capacity: ByteSize,
requested: ByteSize,
},
#[error(
"write-ahead log memory buffer is full, usage: {usage}, capacity: {capacity}, requested: \
"write-ahead log memory buffer is full: capacity: {capacity}, usage: {usage}, requested: \
{requested}"
)]
Memory {
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-proto/src/indexing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub enum IndexingError {
StorageResolverError(String),
#[error("an internal error occurred: {0}")]
Internal(String),
#[error("the ingest service is unavailable")]
#[error("indexing service is unavailable")]
Unavailable,
}

Expand Down

0 comments on commit 4ab9d46

Please sign in to comment.