Skip to content

Commit

Permalink
add consolidated metadata TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jan 6, 2025
1 parent b03c035 commit dd5c3e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zarrs/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ impl Node {
let metadata = Self::get_metadata(storage, &path, version)?;
let children = match metadata {
NodeMetadata::Array(_) => Vec::default(),
// TODO: Add consolidated metadata support
NodeMetadata::Group(_) => get_child_nodes(storage, &path)?,
};
let node = Self {
Expand Down Expand Up @@ -291,6 +292,7 @@ impl Node {
let metadata = Self::async_get_metadata(&storage, &path, version).await?;
let children = match metadata {
NodeMetadata::Array(_) => Vec::default(),
// TODO: Add consolidated metadata support
NodeMetadata::Group(_) => async_get_child_nodes(&storage, &path).await?,
};
let node = Self {
Expand Down

0 comments on commit dd5c3e5

Please sign in to comment.