Skip to content

Conversation

@igor-sirotin
Copy link
Collaborator

@igor-sirotin igor-sirotin commented May 24, 2025

Description

  1. I've removed this:
    https://github.com/waku-org/go-waku/blob/8b0e03113db6db3dcd2fbef9a97380f2b8631098/waku/v2/protocol/relay/waku_relay.go#L441-L445

    Because the client will call Unsubscribe in the end anyway.
    At the same time for current implementation we need to provide some ctx, which is complicating status-go code.

    I've kept the ctx argument for Subscribe and Unsubscribe not to break compatibility.

  2. Also added a getter for Subscription.contentFilter to simplify status-go code

@igor-sirotin igor-sirotin force-pushed the fix/remove-auto-unsubscribe branch from c1d9b9a to aabd99e Compare May 24, 2025 14:12
Copy link
Member

@richard-ramos richard-ramos left a comment

Choose a reason for hiding this comment

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

Should be okay to remove the the ctx parameter.

Copy link

@jazzz jazzz left a comment

Choose a reason for hiding this comment

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

👍 - Much cleaner

@igor-sirotin igor-sirotin merged commit 5dea6d3 into master May 28, 2025
11 of 12 checks passed
@igor-sirotin igor-sirotin deleted the fix/remove-auto-unsubscribe branch May 28, 2025 11:04
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.

4 participants