-
Notifications
You must be signed in to change notification settings - Fork 116
Fix two circular Arc references
#736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d8e33c1
a7d2b6a
809a227
97a750f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1761,6 +1761,12 @@ impl Node { | |
| Error::PersistenceFailed | ||
| }) | ||
| } | ||
|
|
||
| #[cfg(cycle_tests)] | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than leaking internals and adding all that boilerplate which only makes sense in the |
||
| /// Fetch a reference to the inner NetworkGraph, for Arc cycle detection | ||
| pub fn fetch_ref(&self) -> std::sync::Weak<Graph> { | ||
| Arc::downgrade(&self.network_graph) | ||
| } | ||
| } | ||
|
|
||
| impl Drop for Node { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, any reason we need to add this
cfgto all integration tests? Why not only on the Rust tests where the test lives?