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
9f6f2e91
Commit
9f6f2e91
authored
Jan 29, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eea1a4f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
go/neo/client.go
go/neo/client.go
+2
-2
go/neo/mastered.go
go/neo/mastered.go
+5
-5
No files found.
go/neo/client.go
View file @
9f6f2e91
...
@@ -55,7 +55,7 @@ type Client struct {
...
@@ -55,7 +55,7 @@ type Client struct {
// node *xneo.NodeApp
// node *xneo.NodeApp
node
*
_MasteredNode
node
*
_MasteredNode
runWG
*
xsync
.
WorkGroup
//
runWG *xsync.WorkGroup
runCancel
func
()
runCancel
func
()
/*
/*
...
@@ -153,7 +153,7 @@ func (c *Client) Run(ctx context.Context) (err error) {
...
@@ -153,7 +153,7 @@ func (c *Client) Run(ctx context.Context) (err error) {
// Close implements zodb.IStorageDriver.
// Close implements zodb.IStorageDriver.
func
(
c
*
Client
)
Close
()
(
err
error
)
{
func
(
c
*
Client
)
Close
()
(
err
error
)
{
c
.
runCancel
()
c
.
runCancel
()
err
=
c
.
runWG
.
Wait
()
// err = c.runWG.Wait() XXX reenable
// close networker if configured to do so
// close networker if configured to do so
if
c
.
ownNet
{
if
c
.
ownNet
{
...
...
go/neo/mastered.go
View file @
9f6f2e91
...
@@ -362,11 +362,11 @@ func (node *_MasteredNode) updateOperational(δf func()) {
...
@@ -362,11 +362,11 @@ func (node *_MasteredNode) updateOperational(δf func()) {
operational
:=
(
node
.
mlink
!=
nil
)
&&
node
.
state
.
IsOperational
()
operational
:=
(
node
.
mlink
!=
nil
)
&&
node
.
state
.
IsOperational
()
fmt
.
Printf
(
"
\n
updateOperatinal: %v
\n
"
,
operational
)
//
fmt.Printf("\nupdateOperatinal: %v\n", operational)
fmt
.
Printf
(
" mlink: %s
\n
"
,
node
.
mlink
)
//
fmt.Printf(" mlink: %s\n", node.mlink)
fmt
.
Printf
(
" state: %s
\n
"
,
node
.
state
.
Code
)
//
fmt.Printf(" state: %s\n", node.state.Code)
fmt
.
Printf
(
" partTab:
\n
%s"
,
node
.
state
.
PartTab
)
//
fmt.Printf(" partTab:\n%s", node.state.PartTab)
fmt
.
Printf
(
" nodeTab:
\n
%s"
,
node
.
state
.
NodeTab
)
//
fmt.Printf(" nodeTab:\n%s", node.state.NodeTab)
if
operational
!=
node
.
operational
{
if
operational
!=
node
.
operational
{
node
.
operational
=
operational
node
.
operational
=
operational
...
...
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