Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
448231d7
Commit
448231d7
authored
Jan 20, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2c040f4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
go/neo/master.go
go/neo/master.go
+1
-2
go/neo/storage.go
go/neo/storage.go
+1
-2
go/neo/xneo/xneo.go
go/neo/xneo/xneo.go
+1
-1
No files found.
go/neo/master.go
View file @
448231d7
...
...
@@ -150,8 +150,7 @@ func (m *Master) Run(ctx context.Context, l xnet.Listener) (err error) {
m
.
node
.
NodeTab
.
Update
(
m
.
node
.
MyInfo
)
// wrap listener with link / identificaton hello checker
ll
:=
neonet
.
NewLinkListener
(
l
)
lli
:=
xneo
.
NewListener
(
ll
)
lli
:=
xneo
.
NewListener
(
neonet
.
NewLinkListener
(
l
))
// accept incoming connections and pass them to main driver
wg
:=
sync
.
WaitGroup
{}
...
...
go/neo/storage.go
View file @
448231d7
...
...
@@ -96,8 +96,7 @@ func (stor *Storage) Run(ctx context.Context, l xnet.Listener) (err error) {
stor
.
node
.
MyInfo
.
Addr
=
naddr
// wrap listener with link / identificaton hello checker
ll
:=
neonet
.
NewLinkListener
(
l
)
lli
:=
xneo
.
NewListener
(
ll
)
lli
:=
xneo
.
NewListener
(
neonet
.
NewLinkListener
(
l
))
// start serving incoming connections
wg
:=
sync
.
WaitGroup
{}
...
...
go/neo/xneo/xneo.go
View file @
448231d7
...
...
@@ -188,7 +188,7 @@ func (l *listener) Accept(ctx context.Context) (_ *neonet.Request, _ *proto.Requ
// identify peer
// the first conn must come with RequestIdentification packet
defer
xerr
.
Context
(
&
err
,
"identify"
)
// XXX -> task.ErrContext?
req
,
err
:=
link
.
Recv1
(
/*ctx*/
)
req
,
err
:=
link
.
Recv1
(
/*
XXX
ctx*/
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment