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

Option to enable/disable pubsub announcement #422

Merged
merged 3 commits into from
Nov 24, 2023
Merged

Conversation

gammazero
Copy link
Collaborator

@gammazero gammazero commented Nov 23, 2023

Make it optional to send announcements via gossip pubsub, instead of always sending them if a libp2p host is present.

This PR also separates announcement sender configuration from publisher configuration.

Other minor updates:

  • Always close http response body
  • Update go-libp2p and go-libipni

Fixes issue #364

Note: new options and config file remain backward-compatible with boost and with previous indexer-provider installations.

Make it optional to send announcements via gossip pubsub, instead of always sending them if a libp2p host is present.

This PR also separates announcement sender configuration from publisher configuration.

Other minor updates:
- Always close http response body
- Update go-libp2p and go-libipni

Fixes issue #364
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2023

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (b5a3c45) 50.29% compared to head (85ecbaa) 50.22%.

Files Patch % Lines
engine/engine.go 61.29% 9 Missing and 3 partials ⚠️
engine/options.go 64.28% 5 Missing ⚠️
cmd/provider/connect.go 0.00% 2 Missing ⚠️
cmd/provider/import.go 0.00% 2 Missing ⚠️
cmd/provider/daemon.go 0.00% 1 Missing ⚠️
cmd/provider/remove.go 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #422      +/-   ##
==========================================
- Coverage   50.29%   50.22%   -0.08%     
==========================================
  Files          61       61              
  Lines        5032     5053      +21     
==========================================
+ Hits         2531     2538       +7     
- Misses       2184     2198      +14     
  Partials      317      317              

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

@gammazero gammazero merged commit 791a485 into main Nov 24, 2023
9 of 10 checks passed
@gammazero gammazero deleted the pubsub-announce-option branch November 24, 2023 21:23
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