Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
primitives
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xx network
primitives
Commits
799fbff7
Commit
799fbff7
authored
Sep 15, 2020
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
GetGatewayId() should be running off Gateway struct, not Node
parent
516a65a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ndf/ndf.go
+1
-1
1 addition, 1 deletion
ndf/ndf.go
with
1 addition
and
1 deletion
ndf/ndf.go
+
1
−
1
View file @
799fbff7
...
...
@@ -233,7 +233,7 @@ func (n *Node) GetNodeId() (*id.ID, error) {
}
// GetGatewayId formats the gateway id into the id format specified in the id package of this repo
func
(
n
*
Node
)
GetGatewayId
()
(
*
id
.
ID
,
error
)
{
func
(
n
*
Gateway
)
GetGatewayId
()
(
*
id
.
ID
,
error
)
{
newID
,
err
:=
id
.
Unmarshal
(
n
.
ID
)
if
err
!=
nil
{
return
nil
,
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment