Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Derive clone, hash, eq for KeyRange to allow it to be stored in a map.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzxporter committed Oct 20, 2022
1 parent 22c5341 commit 97704e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kv/mod.rs
Expand Up @@ -96,6 +96,7 @@ impl From<mvccpb::KeyValue> for KeyValue {
}

/// KeyRange is an abstraction for describing etcd key of various types.
#[derive(Clone, Hash, PartialEq, Eq)]
pub struct KeyRange {
pub key: Vec<u8>,
pub range_end: Vec<u8>,
Expand Down

0 comments on commit 97704e6

Please sign in to comment.