Skip to content

Commit 996ce03

Browse files
committed
Add WithTestExtension option
1 parent d135664 commit 996ce03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ type PeerExtensions struct {
99
TestExtension bool
1010
}
1111

12-
func WithPeerExtensions(exts PeerExtensions) Option {
12+
func WithTestExtension() Option {
1313
return func(ps *PubSub) error {
1414
if rt, ok := ps.rt.(*GossipSubRouter); ok {
15-
rt.extensions.myExtensions = exts
15+
rt.extensions.myExtensions.TestExtension = true
1616
}
1717
return nil
1818
}

0 commit comments

Comments
 (0)