Skip to content

Move 'sink' module to this codebase, add webhook sink #658

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

Merged
merged 28 commits into from
Jul 18, 2025

Conversation

sduchesneau
Copy link
Contributor

  • created sink module from https://github.com/streamingfast/substreams-sink
  • moved substreams run command as an implementation of that sink
  • added a webhook sink
  • Existing sinks can change their import to github.com/streamingfast/substreams/sink instead of github.com/streamingfast/substreams-sink with minimal changes.
  • Important sinks can be added directly in this codebase like the webhook one

Copy link
Contributor

@maoueh maoueh left a comment

Choose a reason for hiding this comment

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

Small nitpick

@@ -0,0 +1,120 @@
package webhook
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this file?

Comment on lines 19 to 23
sink.AddFlagsToSet(guiCmd.Flags(),
sink.FlagIgnore(sink.FlagDevelopmentMode,
sink.FlagLiveBlockTimeDelta,
sink.FlagInfiniteRetry))

Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's just because we would need to:

  • Add a new line before sink.FlagDevelopmentMode
  • Add a trailing comma and newline after sink.FlagInfiniteRetry

That would make the rendering better. There is two other occurrences of this.

@sduchesneau sduchesneau merged commit 5b2a6e8 into develop Jul 18, 2025
7 checks passed
@sduchesneau sduchesneau deleted the feature/sink branch July 18, 2025 15:30
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