aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/discover.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-12-08 20:09:26 +0800
committerFelix Lange <fjl@twurst.com>2016-12-08 20:09:26 +0800
commit0fe35b907addf1c066cb4d7c717bb23f9f2e7be4 (patch)
treece23037c4256b7c1ec4561d7477c33b328aa81e8 /mobile/discover.go
parent3fc7c978277051391f8ea7831559e9f4f83c3166 (diff)
downloaddexon-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.gz
dexon-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.zst
dexon-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.zip
mobile: iOS naming and API fixes for generators and Swift (#3408)
* build: modify the iOS namespace to iGeth (gomobile limitation) * mobile: assign names to return types for ObjC wrapper * mobile: use more expanded names for iOS/Swift API
Diffstat (limited to 'mobile/discover.go')
-rw-r--r--mobile/discover.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile/discover.go b/mobile/discover.go
index 9df2d04c3..9b3c93ccd 100644
--- a/mobile/discover.go
+++ b/mobile/discover.go
@@ -53,7 +53,7 @@ type Enode struct {
// and UDP discovery port 30301.
//
// enode://<hex node id>@10.3.58.6:30303?discport=30301
-func NewEnode(rawurl string) (*Enode, error) {
+func NewEnode(rawurl string) (enode *Enode, _ error) {
node, err := discv5.ParseNode(rawurl)
if err != nil {
return nil, err
@@ -82,7 +82,7 @@ func (e *Enodes) Size() int {
}
// Get returns the enode at the given index from the slice.
-func (e *Enodes) Get(index int) (*Enode, error) {
+func (e *Enodes) Get(index int) (enode *Enode, _ error) {
if index < 0 || index >= len(e.nodes) {
return nil, errors.New("index out of bounds")
}