Skip to content

support broadcast to unsubscribe topic#36

Open
envestcc wants to merge 15 commits into
iotexproject:masterfrom
envestcc:peers_by_topic
Open

support broadcast to unsubscribe topic#36
envestcc wants to merge 15 commits into
iotexproject:masterfrom
envestcc:peers_by_topic

Conversation

@envestcc

@envestcc envestcc commented Feb 27, 2023

Copy link
Copy Markdown
Member

summary:

  • Broadcast support unsubscribed topic
  • add ConnectedPeersByBroadcastTopic

Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
Comment thread p2p.go
Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
Comment thread p2p.go
Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
Comment thread p2p.go Outdated
@envestcc envestcc changed the title support get connected peers by topic support broadcast unsubscribe topic Aug 3, 2023
@envestcc envestcc changed the title support broadcast unsubscribe topic support broadcast to unsubscribe topic Aug 3, 2023
@envestcc envestcc marked this pull request as ready for review August 3, 2023 03:05
Comment thread .github/workflows/go.yml
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.18.5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

upgrading golang in a separate pr

Comment thread p2p.go
return err
}
// publishing unsubscribed topic will fail when no connected peers, it should return error
_, subscribed := h.pubsubManager.getSub(topic)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

how is the subscription of topics from connected peers detected?

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