kubo/core/bootstrap
Andrew Gillis c46cbecb83
core/bootstrap: fix panic without backup bootstrap peer functions (#10029)
Fix panic when backup bootstrap peer load and save funcs are nil

A panic occurs when the first bootstrap round runs is these functions are not assigned in the configuration:
- `LoadBackupBootstrapPeers`
- `SaveBackupBootstrapPeers`

This fix assumes that it is acceptable for these functions to be nil, as it may be desirable to disable the backup peer load and save functionality.
2023-09-21 18:29:38 +02:00
..
bootstrap_test.go core/bootstrap: fix panic without backup bootstrap peer functions (#10029) 2023-09-21 18:29:38 +02:00
bootstrap.go core/bootstrap: fix panic without backup bootstrap peer functions (#10029) 2023-09-21 18:29:38 +02:00