Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
999e28e6
Commit
999e28e6
authored
Jan 29, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4bedfba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
go/neo/mastered.go
go/neo/mastered.go
+2
-1
No files found.
go/neo/mastered.go
View file @
999e28e6
...
...
@@ -353,6 +353,7 @@ func (node *_MasteredNode) recvδstate(ctx context.Context, msg proto.Msg) (δpt
return
δpt
,
err
}
// updateOperational calls δf under .opMu and updates .operational from current state.
// After .opMu unlock it also notifies those who was waiting for .operational to become y.
func
(
node
*
_MasteredNode
)
updateOperational
(
δf
func
())
{
...
...
@@ -388,7 +389,6 @@ func (node *_MasteredNode) updateOperational(δf func()) {
}
}
// WithOperational runs f during when cluster state is/becomes operational.
// The cluster state is guaranteed not to change during f run.
func
(
node
*
_MasteredNode
)
WithOperational
(
ctx
context
.
Context
,
f
func
(
mlink
*
neonet
.
NodeLink
,
cs
*
xneo
.
ClusterState
)
error
)
error
{
...
...
@@ -418,6 +418,7 @@ func (node *_MasteredNode) WithOperational(ctx context.Context, f func(mlink *ne
return
f
(
node
.
mlink
,
&
node
.
state
)
}
var
cmdShutdown
=
errors
.
New
(
"master told us to shutdown"
)
// updateNodeTab applies updates to .nodeTab from message and logs changes appropriately.
...
...
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