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