-
Notifications
You must be signed in to change notification settings - Fork 12
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
Integrate explorer #603
Integrate explorer #603
Conversation
"-C", | ||
"link-args=-framework CoreFoundation -framework Security -framework CoreServices -lresolv", | ||
] |
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.
?
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.
This may be changed by fmt tools, will change it back.
match self | ||
.carnot_tree | ||
.committee_by_member_id(&id) | ||
.map(|c| apply_threshold(c.len(), self.threshold)) | ||
.expect("node is not part of any committee") | ||
{ | ||
Some(threshold) => threshold, | ||
None => panic!("node {id} is not part of any committee"), | ||
} |
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.
Why is there a change in the carnot tree in this PR?
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.
Ah, this is used when I debugging, forget to change it back.
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.
This is still here. As well as other few changes and nitpicks.
nomos-cli/src/cmds/chat/mod.rs
Outdated
pub fn run_app_without_terminal( | ||
&self, | ||
username: String, | ||
) -> Result<(std::sync::mpsc::Receiver<Vec<ChatMessage>>, App), Box<dyn std::error::Error>> |
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.
Where is this used?
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.
This will be used in the chat demo test, I do not upload that test case because of a wired "addr already in used" error.
ONCE_INIT.call_once(move || { | ||
registry_init!(layer, config.format, config.level); | ||
}); |
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.
What is the issue with the registry?
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.
Running multiple Overwatch services with log service in one test case in different threads will lead to panic as tracing only allows setting global subscriber once. There is PR #577 for it, I will update that PR to feature gate this in test
.
There are failing checks. Overall looks ok. |
The test cases in this PR shows that the explorer can work as expectedly.