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
8be71aec
Commit
8be71aec
authored
Feb 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ed777fda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
go/neo/xneo/parttab.go
go/neo/xneo/parttab.go
+2
-2
No files found.
go/neo/xneo/parttab.go
View file @
8be71aec
...
@@ -246,7 +246,7 @@ func (pt *PartitionTable) String() string {
...
@@ -246,7 +246,7 @@ func (pt *PartitionTable) String() string {
return
buf
.
String
()
return
buf
.
String
()
}
}
// ToMsg creates message that represents parttion table state.
// ToMsg creates message that represents part
i
tion table state.
func
(
pt
*
PartitionTable
)
ToMsg
()
*
proto
.
SendPartitionTable
{
func
(
pt
*
PartitionTable
)
ToMsg
()
*
proto
.
SendPartitionTable
{
msg
:=
&
proto
.
SendPartitionTable
{
msg
:=
&
proto
.
SendPartitionTable
{
PTid
:
pt
.
PTid
,
PTid
:
pt
.
PTid
,
...
@@ -271,7 +271,7 @@ func (pt *PartitionTable) ToMsg() *proto.SendPartitionTable {
...
@@ -271,7 +271,7 @@ func (pt *PartitionTable) ToMsg() *proto.SendPartitionTable {
func
PartTabFromMsg
(
msg
*
proto
.
SendPartitionTable
)
*
PartitionTable
{
func
PartTabFromMsg
(
msg
*
proto
.
SendPartitionTable
)
*
PartitionTable
{
pt
:=
&
PartitionTable
{
pt
:=
&
PartitionTable
{
PTid
:
msg
.
PTid
,
PTid
:
msg
.
PTid
,
r_
:
int
(
msg
.
NumReplicas
+
1
-
1
),
// NOTE NEO/py treat
e
s NumReplicas as n(replica)-1
r_
:
int
(
msg
.
NumReplicas
+
1
-
1
),
// NOTE NEO/py treats NumReplicas as n(replica)-1
}
}
for
i
,
row
:=
range
msg
.
RowList
{
for
i
,
row
:=
range
msg
.
RowList
{
...
...
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