Skip to content

Commit f08d8f2

Browse files
committed
fix: always return peerID and addresses when marshalling DnsDiscoveryItem
1 parent abcadd1 commit f08d8f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/api_discovery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
)
1010

1111
type DnsDiscoveryItem struct {
12-
PeerID string `json:"peerID,omitempty"`
13-
Addresses []string `json:"multiaddrs,omitempty"`
12+
PeerID string `json:"peerID"`
13+
Addresses []string `json:"multiaddrs"`
1414
ENR string `json:"enr,omitempty"`
1515
}
1616

0 commit comments

Comments
 (0)