Skip to content

Conversation

@jakecorrenti
Copy link
Member

Before starting the status listener thread, we not only need to check if the RestfulUri variant != None, but we also need to verify the user specified a restful URI scheme at all.

This prevents a panic when we call status_listener() due to hitting an unreachable!() code path. Functionally, the panic didn't affect users; it's difficult to catch since the VM starts immediately after the message is printed to stdout.

Before starting the status listener thread, we not only need to check if
the RestfulUri variant != None, but we also need to verify the user
specified a restful URI scheme at all.

This prevents a panic when we call `status_listener()` due to hitting
an `unreachable!()` code path. Functionally, the panic didn't affect users;
it's difficult to catch since the VM starts immediately after the
message is printed to stdout.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
Copy link
Member

@tylerfanelli tylerfanelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but where is this unreachable!() you mention?

@tylerfanelli tylerfanelli merged commit 76fc38b into containers:main Sep 25, 2025
3 checks passed
@jakecorrenti
Copy link
Member Author

LGTM, but where is this unreachable!() you mention?

RestfulUri::None => unreachable!(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants