Skip to content

Commit 288f5c6

Browse files
committed
chore: remove unused code
1 parent 802ee66 commit 288f5c6

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

waku/v2/protocol/enr/shards.go

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package enr
22

33
import (
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

6347
func RelayShardList(record *enr.Record) (*protocol.RelayShards, error) {

0 commit comments

Comments
 (0)