Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Don't panic while searching gateway #56

Merged
merged 2 commits into from
May 1, 2023

Conversation

ackintosh
Copy link
Contributor

search_gateway() panics because of attohttpc::get() would panics with something invalid urls.

This PR makes search_gateway() log errors instead of panic so that users identify the cause of errors.

@sbstp sbstp merged commit c01446a into sbstp:master May 1, 2023
@ackintosh ackintosh deleted the dont-panic-while-searching branch May 1, 2023 21:40
@ackintosh
Copy link
Contributor Author

@sbstp Thank you for merging this! I would appreciate it if you cut a new release. 🙂

@sbstp
Copy link
Owner

sbstp commented May 2, 2023

done

bors bot pushed a commit to sigp/lighthouse that referenced this pull request May 3, 2023
## Issue Addressed

#4171

## Proposed Changes

Through [this PR](sbstp/rust-igd#56) in rust-igd, `igd` v0.12.1 no longer panics if there is an issue while searching for a gateway. So updating igd makes lighthouse emit a helpful log instead of panicking.

## Additional Info

No CHANGELOG exists in rust-igd. 👀 Here is the commit history between v0.11.1 and v0.12.1. No breaking changes.

sbstp/rust-igd@v0.11.1...v0.12.1
bors bot pushed a commit to sigp/lighthouse that referenced this pull request May 3, 2023
## Issue Addressed

#4171

## Proposed Changes

Through [this PR](sbstp/rust-igd#56) in rust-igd, `igd` v0.12.1 no longer panics if there is an issue while searching for a gateway. So updating igd makes lighthouse emit a helpful log instead of panicking.

## Additional Info

No CHANGELOG exists in rust-igd. 👀 Here is the commit history between v0.11.1 and v0.12.1. No breaking changes.

sbstp/rust-igd@v0.11.1...v0.12.1
ghost pushed a commit to oone-world/lighthouse that referenced this pull request Jul 13, 2023
## Issue Addressed

sigp#4171

## Proposed Changes

Through [this PR](sbstp/rust-igd#56) in rust-igd, `igd` v0.12.1 no longer panics if there is an issue while searching for a gateway. So updating igd makes lighthouse emit a helpful log instead of panicking.

## Additional Info

No CHANGELOG exists in rust-igd. 👀 Here is the commit history between v0.11.1 and v0.12.1. No breaking changes.

sbstp/rust-igd@v0.11.1...v0.12.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants