Skip to content

Commit

Permalink
fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit committed Mar 6, 2024
1 parent 147ab50 commit 85a8a99
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions glide-core/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
/*
* Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0
*/

use redis::RedisError;

#[repr(C)]
pub enum RequestErrorType {
Unspecified,
ExecAbort,
Timeout,
Disconnect,
Unspecified = 0,
ExecAbort = 1,
Timeout = 2,
Disconnect = 3,
}

pub fn error_type(error: &RedisError) -> RequestErrorType {
Expand Down

0 comments on commit 85a8a99

Please sign in to comment.