Skip to content

Commit

Permalink
chore: add note on pubsub fix
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Jul 6, 2023
1 parent f7d7f44 commit 9e5846d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ func (opts *Opts) applyDefaults(ctx context.Context) error {
return fmt.Errorf("unable to init gossipsub: %w", err)
}

// @NOTE(gfanton): we need to force cast here until our fix is push
// upstream on the original go-libp2p-pubsub
// see: https://github.com/gfanton/go-libp2p-pubsub/commit/8f4fd394f8dfcb3a5eb724a03f9e4e1e33194cbd
opts.PubSub = (*pubsub.PubSub)(unsafe.Pointer(ps))
}

Expand Down

0 comments on commit 9e5846d

Please sign in to comment.