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

Derive clone, hash, eq for KeyRange to allow it to be stored in a map. #75

Merged
merged 1 commit into from Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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