Skip to content
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

Fix panic in bootstrap #2155

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Fix panic in bootstrap #2155

merged 1 commit into from
Jul 26, 2023

Conversation

gammazero
Copy link
Collaborator

If the bootstrap config function LoadTempBootstrapPeers is not defined, then bootstrapping panics.

This happens here, because a nil function is called: https://github.com/ipfs/kubo/blob/master/core/bootstrap/bootstrap.go#L248

If the bootstrap config function LoadTempBootstrapPeers is not defined, then bootstrapping panics.

This happens here, because a nil function is called:
https://github.com/ipfs/kubo/blob/master/core/bootstrap/bootstrap.go#L248
@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.18% ⚠️

Comparison is base (47f3866) 47.30% compared to head (f93d3d7) 47.12%.
Report is 1 commits behind head on main.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2155      +/-   ##
==========================================
- Coverage   47.30%   47.12%   -0.18%     
==========================================
  Files          92       92              
  Lines       10009    10047      +38     
==========================================
  Hits         4735     4735              
- Misses       4735     4773      +38     
  Partials      539      539              
Files Changed Coverage Δ
command/daemon.go 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gammazero
Copy link
Collaborator Author

Force merging, since this fixes a panic in already-merged code.

@gammazero gammazero merged commit ce2216d into main Jul 26, 2023
@gammazero gammazero deleted the fix-bootstrap-panic branch July 26, 2023 00:58
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