(client: &'c Client, repo: RepoId, topic: Option<RepoTopic>)
| 585 | |
| 586 | impl<'c> TopicDownsetIter<'c> { |
| 587 | pub fn new(client: &'c Client, repo: RepoId, topic: Option<RepoTopic>) -> Self { |
| 588 | let mut stack = vec![]; |
| 589 | if let Some(topic) = &topic { |
| 590 | stack.push(topic.to_topic_child(chrono::Utc::now())); |
| 591 | } |
| 592 | |
| 593 | Self { |
| 594 | client, |
| 595 | seen: HashSet::new(), |
| 596 | repo_id: repo, |
| 597 | stack, |
| 598 | } |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected