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
7ef30219
Commit
7ef30219
authored
Nov 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ea538368
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
go/neo/master.go
go/neo/master.go
+1
-1
go/neo/xneo/nodetab.go
go/neo/xneo/nodetab.go
+1
-1
go/neo/xneo/parttab.go
go/neo/xneo/parttab.go
+2
-2
No files found.
go/neo/master.go
View file @
7ef30219
...
...
@@ -1247,7 +1247,7 @@ func (p *_MasteredPeer) run(ctx context.Context, f func() error) error {
}
}
// accept sends accept reply and pushes inital state0 snapshot to peer.
// accept sends accept reply and pushes init
i
al state0 snapshot to peer.
func
(
p
*
_MasteredPeer
)
accept
(
ctx
context
.
Context
)
(
err
error
)
{
defer
task
.
Runningf
(
&
ctx
,
"accept %s"
,
p
.
node
.
NID
)(
&
err
)
...
...
go/neo/xneo/nodetab.go
View file @
7ef30219
...
...
@@ -213,7 +213,7 @@ func (p *PeerNode) ResetLink(ctx context.Context) {
p
.
linkMu
.
Unlock
()
if
link
!=
nil
{
log
.
Infof
(
ctx
,
"%
v
: closing link"
,
link
)
log
.
Infof
(
ctx
,
"%
s
: closing link"
,
link
)
err
:=
link
.
Close
()
if
err
!=
nil
{
log
.
Error
(
ctx
,
err
)
...
...
go/neo/xneo/parttab.go
View file @
7ef30219
...
...
@@ -162,7 +162,7 @@ func (c *Cell) Readable() bool {
// The partition table created will be of len=np
func
MakePartTab
(
np
int
,
nreplica
int
,
nodev
[]
*
PeerNode
)
*
PartitionTable
{
if
nreplica
<
1
{
panic
(
"nreplica
too small
"
)
panic
(
"nreplica
< 1
"
)
}
// TODO tests
...
...
@@ -224,7 +224,7 @@ func (pt *PartitionTable) OperationalWith(nt *NodeTable) bool {
}
// ---- encode / decode PT to / from messages
// ---- encode / decode PT to / from messages
----
func
(
pt
*
PartitionTable
)
String
()
string
{
buf
:=
&
bytes
.
Buffer
{}
...
...
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