mirror of
https://github.com/logos-messaging/enr-decoder.git
synced 2026-01-02 04:43:09 +00:00
chore: handle no shard info available
chore: handle no shard info available
This commit is contained in:
commit
9c0afc2341
10
main.go
10
main.go
@ -62,8 +62,14 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("cluster-id: ", shards.ClusterID)
|
||||
fmt.Println("shards: ", shards.ShardIDs)
|
||||
if shards != nil {
|
||||
fmt.Println("cluster-id: ", shards.ClusterID)
|
||||
fmt.Println("shards: ", shards.ShardIDs)
|
||||
} else {
|
||||
fmt.Println("cluster-id:", "not available")
|
||||
fmt.Println("shards:", "not available")
|
||||
}
|
||||
|
||||
DecodeWaku2ENRField(node.Record())
|
||||
|
||||
fmt.Println("multiaddresses:")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user