File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 11package enr
22
33import (
4- "errors"
5-
64 "github.com/ethereum/go-ethereum/p2p/enode"
75 "github.com/ethereum/go-ethereum/p2p/enr"
6+
87 "github.com/waku-org/go-waku/waku/v2/protocol"
98)
109
@@ -43,21 +42,6 @@ func WithWakuRelaySharding(rs protocol.RelayShards) ENROption {
4342 }
4443}
4544
46- func WithWakuRelayShardingTopics (topics ... string ) ENROption {
47- return func (localnode * enode.LocalNode ) error {
48- rs , err := protocol .TopicsToRelayShards (topics ... )
49- if err != nil {
50- return err
51- }
52-
53- if len (rs ) != 1 {
54- return errors .New ("expected a single RelayShards" )
55- }
56-
57- return WithWakuRelaySharding (rs [0 ])(localnode )
58- }
59- }
60-
6145// ENR record accessors
6246
6347func RelayShardList (record * enr.Record ) (* protocol.RelayShards , error ) {
You can’t perform that action at this time.
0 commit comments