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
043561f4
Commit
043561f4
authored
Feb 08, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ebf2ca71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
go/neo/mastered.go
go/neo/mastered.go
+3
-2
go/neo/storage.go
go/neo/storage.go
+1
-1
No files found.
go/neo/mastered.go
View file @
043561f4
...
...
@@ -243,6 +243,7 @@ func (node *_MasteredNode) talkMaster1(ctx, ctxPreTalkM context.Context, f func(
wg
:=
xsync
.
NewWorkGroup
(
ctx
)
// receive and handle notifications from master
// XXX no need to spawn "rx prefilter" - just make MasterLink.Recv1() call mlink.Recv1(), check if message should be prefiltered and call Master.recvMaster1. (-> yes)
node
.
rxm
=
make
(
chan
_RxM
)
wg
.
Go
(
func
(
ctx
context
.
Context
)
error
{
defer
task
.
Running
(
&
ctx
,
"rx prefilter"
)(
&
err
)
...
...
@@ -292,8 +293,8 @@ func (node *_MasteredNode) recvMaster1(ctx context.Context, req neonet.Request)
}
}
// pass request ->
R
ecvM1
// NOTE req ownership is passed into
R
ecvM1 caller who becomes responsible to close it
// pass request ->
r
ecvM1
// NOTE req ownership is passed into
r
ecvM1 caller who becomes responsible to close it
select
{
case
<-
ctx
.
Done
()
:
req
.
Close
()
...
...
go/neo/storage.go
View file @
043561f4
...
...
@@ -48,7 +48,7 @@ import (
//
// Storage implements only NEO protocol logic with data being persisted via provided storage.Backend.
type
Storage
struct
{
node
*
_MasteredNode
// XXX -> nodem ?
node
*
_MasteredNode
// context for providing operational service
// it is renewed every time master tells us StartOpertion, so users
...
...
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