Skip to content

Commit

Permalink
Downgrade dashmap to 3.11.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nightkr committed Jul 23, 2020
1 parent 524de6c commit 2e08615
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion kube-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ smallvec = "1.4.0"
pin-project = "0.4.16"
tokio = { version = "0.2.21", features = ["time"] }
snafu = { version = "0.6.8", features = ["futures"] }
dashmap = "4.0.0-rc6"
dashmap = "3.11.7"

[features]
default = ["native-tls"]
Expand Down
10 changes: 0 additions & 10 deletions kube-runtime/src/reflector/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,4 @@ impl<K: 'static + Clone + Resource> Store<K> {
pub fn state(&self) -> Vec<K> {
self.store.iter().map(|eg| eg.value().clone()).collect()
}

/// Return a guarded dashmap iterator of our state
///
/// This creates an iterator over all entries in the map.
/// This does not take a snapshot of the map and thus changes during the lifetime
/// of the iterator may or may not become visible in the iterator.
#[must_use]
pub fn iter(&self) -> dashmap::Iter<ObjectRef<K>, K> {
self.store.iter()
}
}

0 comments on commit 2e08615

Please sign in to comment.